Skip to content

Commit

Permalink
[bbc] improve image dimensions (#1706)
Browse files Browse the repository at this point in the history
download the 1920xN versions instead of 976x549
  • Loading branch information
mikf committed Jul 29, 2021
1 parent 57c1a86 commit 6c11105
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gallery_dl/extractor/bbc.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class BbcGalleryExtractor(GalleryExtractor):
test = (
("https://www.bbc.co.uk/programmes/p084qtzs/p085g9kg", {
"pattern": r"https://ichef\.bbci\.co\.uk"
r"/images/ic/976x549_b/\w+\.jpg",
r"/images/ic/1920xn/\w+\.jpg",
"count": 37,
"keyword": {
"programme": "p084qtzs",
Expand All @@ -50,8 +50,8 @@ def metadata(self, page):

def images(self, page):
return [
(imgset.rpartition(", ")[2].partition(" ")[0], None)
for imgset in text.extract_iter(page, 'data-image-src-sets="', '"')
(src.replace("/320x180_b/", "/1920xn/"), None)
for src in text.extract_iter(page, 'data-image-src="', '"')
]


Expand Down

0 comments on commit 6c11105

Please sign in to comment.