diff --git a/OpenDirectoryDownloader.Tests/DirectoryParserTests.cs b/OpenDirectoryDownloader.Tests/DirectoryParserTests.cs index dbbeaf4b..5e0332fe 100644 --- a/OpenDirectoryDownloader.Tests/DirectoryParserTests.cs +++ b/OpenDirectoryDownloader.Tests/DirectoryParserTests.cs @@ -2639,5 +2639,34 @@ public async Task TestDirectoryListing86bAsync() Assert.Equal("Bangla New_Latest Natok March 2013 - Binodoni Kinba Kobi %28HQ%29 by - %5BMim%2CMilon%5D-thumb.jpg", webDirectory.Files[0].FileName); Assert.Equal(21094, webDirectory.Files[0].FileSize); } + + /// + /// Url: http://thiscatis.online/shared/ + /// + [Fact] + public async Task TestDirectoryListing87aAsync() + { + WebDirectory webDirectory = await ParseHtml(GetSample()); + + Assert.Equal("ROOT", webDirectory.Name); + Assert.Equal(6, webDirectory.Subdirectories.Count); + Assert.Equal("Audio", webDirectory.Subdirectories[0].Name); + Assert.Empty(webDirectory.Files); + } + + /// + /// Url: http://thiscatis.online/shared/Books/Academic%20Papers/ + /// + [Fact] + public async Task TestDirectoryListing87bAsync() + { + WebDirectory webDirectory = await ParseHtml(GetSample()); + + Assert.Equal("ROOT", webDirectory.Name); + Assert.Empty(webDirectory.Subdirectories); + Assert.Equal(32, webDirectory.Files.Count); + Assert.Equal("10.0000@newleftreview.org@3150.pdf", webDirectory.Files[0].FileName); + Assert.Equal(665600, webDirectory.Files[0].FileSize); + } } } \ No newline at end of file diff --git a/OpenDirectoryDownloader.Tests/Samples/DirectoryListing87a.html.dat b/OpenDirectoryDownloader.Tests/Samples/DirectoryListing87a.html.dat new file mode 100644 index 00000000..4baf7a34 --- /dev/null +++ b/OpenDirectoryDownloader.Tests/Samples/DirectoryListing87a.html.dat @@ -0,0 +1,18 @@ + + + + + + +Index of /shared/ +

Index of /shared/

+ + + + + + + + + +
File Name  ↓ File Size  ↓ Date  ↓ 
Parent directory/--
Audio/-2019-Apr-19 04:48
Books/-2019-Apr-19 01:22
ROMz/-2017-Mar-22 20:36
Software/-2019-May-06 00:05
Videos/-2019-Feb-10 14:56
stdisc/-2019-Apr-19 01:21
diff --git a/OpenDirectoryDownloader.Tests/Samples/DirectoryListing87b.html.dat b/OpenDirectoryDownloader.Tests/Samples/DirectoryListing87b.html.dat new file mode 100644 index 00000000..6cd8fb7b --- /dev/null +++ b/OpenDirectoryDownloader.Tests/Samples/DirectoryListing87b.html.dat @@ -0,0 +1,44 @@ + + + + + + +Index of /shared/Books/Academic Papers/ +

Index of /shared/Books/Academic Papers/

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
File Name  ↓ File Size  ↓ Date  ↓ 
Parent directory/--
10.0000@newleftreview.org@3150.pdf 650K2018-Oct-02 16:17
10.1.1.405.5725.pdf 115K2016-Feb-14 14:11
10.1093@pastj@gtx057.pdf 723K2018-Mar-04 21:20
10.2307@40277315.pdf 1M2016-May-28 18:32
2008stellaphd.pdf 1M2016-Aug-04 09:26
2011_reflecting_on_social_move.PDF 4M2014-Oct-21 17:15
2015_Norwegian_Extraterritoriality_in_C.pdf 5M2016-Jan-08 15:54
ADA511037.pdf 3M2014-Oct-25 12:38
An_equal_share_in_inequality_Alexandra.docx 50K2016-Jan-08 16:01
Article5.pdf 290K2014-Oct-24 23:57
CHALLENGING_THE_OLD_ORDER-CAUSES_CLAUSES.pdf 124K2016-Jan-08 15:51
CIA Air Operation in Laos 1955 to 1974.pdf 860K2013-May-19 02:36
Camb. J. Econ.-2005-Jossa-3-18.pdf 115K2016-Jan-09 14:46
Chen_Precariousness.pdf 956K2014-Dec-11 17:06
Colonialism_Two-Spirit_Identity_and_the.pdf 228K2016-Jan-08 15:16
Decentering the Subject.pdf 171K2016-Jan-16 17:56
Decolonization Is Not a Metaphor.pdf 1M2016-Aug-02 17:37
Empire_of_scholars_universities_networks.pdf 87K2016-Jan-08 15:38
Form_versus_Matter_Miraculous_Relics_an.pdf 296K2016-Jan-08 15:56
Foucault_Must_Not_Be_Defended.doc 88K2015-Nov-02 21:36
From_Africa_to_Ifriqiya_Settlement_and_S.pdf 565K2016-Jan-08 15:37
Hans Asperger National Socialism and race hygie..> 3M2019-Apr-23 21:54
Holmstrom hotel bristol affair.pdf 5M2018-May-22 14:48
Oh_Youre_A_Racist_Ive_Got_a_Cure_for_Tha.pdf 145K2016-Jan-08 15:42
Quartermasters of Stadiums and Cemetaries - Mou..> 179K2016-Sep-26 18:21
Roberts, Bruce Slave Exploitation in Neoclassic..> 91K2014-Jun-29 19:21
Rosen, Stanley 'The Idea of Hegel's 'Science of..> 1M2014-Aug-06 20:45
Why Did the Swedish Model Fail - Meidner.pdf 159K2017-Apr-07 17:54
autoritarians.pdf 2M2015-Jan-07 11:30
bel-2010-nazi-privatizations1.pdf 185K2014-May-24 08:54
british plans for the partition of palestine 19..> 3M2015-Aug-18 22:02
the-silicon-ideology.pdf 174K2016-Dec-03 14:14