Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved how seasons and episodes appear in titles for ert extractor. #30

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dmavroeidis
Copy link

Made some changes in the title in the ert extractor:

  • When there is no season information, "season 1" is assumed. This allows for the season portion of the title to always have a value.
  • When the season or the episode are 1-digit long, a "0" (zero) is prepended

These changes allow for more intuitive file naming and -additionally- allow for proper file ordering in all operating systems.

@@ -1,7 +1,8 @@
import requests
import re
from bs4 import BeautifulSoup
import json
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your pr, I will add it, just fix this. The json module is needed.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, thanks, I will. KR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants