Skip to content

Commit

Permalink
merge #5904: [dynastyscans] extract chapter 'tags'
Browse files Browse the repository at this point in the history
  • Loading branch information
mikf committed Jul 29, 2024
2 parents 8a6e208 + 5a36da2 commit 9c91935
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
2 changes: 2 additions & 0 deletions gallery_dl/extractor/dynastyscans.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ def metadata(self, page):
text.extr(group, ' alt="', '"')),
"date" : text.parse_datetime(extr(
'"icon-calendar"></i> ', '<'), "%b %d, %Y"),
"tags" : text.split_html(extr(
"class='tags'>", "<div id='chapter-actions'")),
"lang" : "en",
"language": "English",
}
Expand Down
16 changes: 8 additions & 8 deletions test/results/dynastyscans.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@
"#url" : "http://dynasty-scans.com/chapters/hitoribocchi_no_oo_seikatsu_ch33",
"#category": ("", "dynastyscans", "chapter"),
"#class" : dynastyscans.DynastyscansChapterExtractor,
"#sha1_url" : "dce64e8c504118f1ab4135c00245ea12413896cb",
"#sha1_metadata": "b67599703c27316a2fe4f11c3232130a1904e032",
"#sha1_url" : "3cafa527fecec27a66f35e038c0c53e35d5e4317",
"#sha1_metadata": "7b134f2093813d45774cc68a3cd199ffce3e6fd3",
},

{
"#url" : "http://dynasty-scans.com/chapters/new_game_the_spinoff_special_13",
"#category": ("", "dynastyscans", "chapter"),
"#class" : dynastyscans.DynastyscansChapterExtractor,
"#sha1_url" : "dbe5bbb74da2edcfb1832895a484e2a40bc8b538",
"#sha1_metadata": "6b674eb3a274999153f6be044973b195008ced2f",
"#sha1_url" : "047fa6d58f90272883157a80fbf1e6f03ea5bbab",
"#sha1_metadata": "62dc42e9025c79bdd3e26e026a690f4c28548fd4",
},

{
Expand All @@ -36,8 +36,8 @@
"#url" : "https://dynasty-scans.com/images?with[]=4930&with[]=5211",
"#category": ("", "dynastyscans", "search"),
"#class" : dynastyscans.DynastyscansSearchExtractor,
"#sha1_url" : "22cf0fb64e12b29e79b0a3d26666086a48f9916a",
"#sha1_metadata": "11cbc555a15528d25567977b8808e10369c4c3ee",
"#sha1_url" : "d2422163db7b1db94bf343f8cd50ba9cc08ae6b5",
"#sha1_metadata": "65f9948e7f29a1db2b3e6abb697f7476d2196708",
},

{
Expand All @@ -52,8 +52,8 @@
"#url" : "https://dynasty-scans.com/images/1245",
"#category": ("", "dynastyscans", "image"),
"#class" : dynastyscans.DynastyscansImageExtractor,
"#sha1_url" : "15e54bd94148a07ed037f387d046c27befa043b2",
"#sha1_metadata": "0d8976c2d6fbc9ed6aa712642631b96e456dc37f",
"#sha1_url" : "877054defac8ea2bbaeb632db176037668c73eea",
"#sha1_metadata": "9f6fd139c372203dcf7237e662a80963ab070cb0",
},

)

0 comments on commit 9c91935

Please sign in to comment.