Skip to content

Commit

Permalink
fixes minor error
Browse files Browse the repository at this point in the history
  • Loading branch information
speedyconzales committed May 22, 2024
1 parent ff5ec32 commit f0f439b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ headless and completely automated scraping of the following sites:
| `-s, --season` | **Default:** All seasons will be scraped but not the movies or specials. Choose the season number. -> Providing `0` as season number scrapes the respective movies or specials of that series |
| `-e, --episode` | **Default:** All episodes of the season will be scraped. Choose either one episode or a list of episodes separated by spaces. You can also specify a range of episodes e.g.: `-e 2 3 10-15 17` |
| `-t, --threads` | **Default:** 2. Specify the number of threads or concurrent downloads. Do not choose too high numbers as the server might block too frequent requests |
| `-p, --provider` | **Default:** Downloads will follow this priority: VOE > Vidoza > Streamtape. If the episode is not available on the hoster it will try the next. Specify the hoster/provider you want to download from |
| `-p, --provider` | **Default:** Downloads will follow this priority: VOE > Vidoza > Doodstream > Streamtape. If the episode is not available on the hoster it will try the next. Specify the hoster/provider you want to download from |
| `-a, --anime` | Declare this content as anime. Only useful for `bs.to` as it does not distinguish between series and anime on the site |
## Credits
Expand Down
2 changes: 1 addition & 1 deletion src/html_scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def content_link_is_not_valid(content_link):
headers['Referer'] = 'https://d0000d.com/'
req = urllib.request.Request(f"https://d0000d.com{pass_md5}", headers=headers)
response_page = urllib.request.urlopen(req)
content_link = f"{response_page.read().decode("utf-8")}{''.join(choices(ascii_letters + digits, k=10))}?token={token}&expiry={int(time() * 1000)}"
content_link = f"{response_page.read().decode('utf-8')}{''.join(choices(ascii_letters + digits, k=10))}?token={token}&expiry={int(time() * 1000)}"
logger.debug(f"Found the following video link of {provider}: {content_link}")
return content_link

Expand Down

0 comments on commit f0f439b

Please sign in to comment.