add Friesland season
This commit is contained in:
parent
20f669fef5
commit
2d29b27825
4 changed files with 16 additions and 6 deletions
|
|
@ -1,15 +1,16 @@
|
|||
FROM python:3-alpine
|
||||
FROM python:3.8-alpine
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY requirements.txt ./
|
||||
RUN apk update && apk add mkvtoolnix && apk add --no-cache tzdata
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
RUN apk --update-cache add --no-cache tzdata mkvtoolnix
|
||||
RUN apk --update-cache add --no-cache build-base && pip install -r requirements.txt && apk del build-base
|
||||
ENV TZ Europe/Berlin
|
||||
|
||||
COPY main.py ./
|
||||
|
||||
RUN crontab -l | { cat; echo "15 03 * * * cd /app && python -u /app/main.py"; } | crontab -
|
||||
RUN crontab -l | { cat; echo "@reboot cd /app && python -u /app/main.py"; } | crontab -
|
||||
|
||||
VOLUME ["/download"]
|
||||
|
||||
|
|
|
|||
7
main.py
7
main.py
|
|
@ -52,9 +52,9 @@ def get_episod_info(season_id, name):
|
|||
|
||||
|
||||
def build_filename(name: str, titel_dict: dict):
|
||||
if titel_dict == {}:
|
||||
if not titel_dict:
|
||||
return None
|
||||
q if titel_dict['episod'].isdigit():
|
||||
if titel_dict['episod'].isdigit():
|
||||
filename = '{name} S{season:>02}E{episod:>02} {title}'.format(
|
||||
name=name, **titel_dict)
|
||||
else:
|
||||
|
|
@ -115,6 +115,9 @@ def parse_feed(series_name):
|
|||
titel_dict = groups[0]
|
||||
if season_id is not None:
|
||||
titel_dict = get_episod_info(season_id, titel_dict['title'])
|
||||
if not titel_dict:
|
||||
logging.warning('skip %s', title)
|
||||
continue
|
||||
filename = build_filename(series_name, titel_dict)
|
||||
if filename not in episodes:
|
||||
episodes[filename] = dict()
|
||||
|
|
|
|||
|
|
@ -2,4 +2,5 @@ feedparser==5.2.1
|
|||
requests==2.24.0
|
||||
pymkv==1.0.5
|
||||
fuzzywuzzy==0.18.0
|
||||
python-Levenshtein==0.12.0
|
||||
tvdbsimple==1.0.6
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@ languages = ger
|
|||
ger = ^(?P<title>.*)\s+\((?P<episod>\d+)\)$
|
||||
thetvdb = 253327
|
||||
|
||||
|
||||
[Doctor Who]
|
||||
rss = https://mediathekviewweb.de/feed?query=%23Doctor%20!ARD
|
||||
languages = ger,eng
|
||||
|
|
@ -25,3 +24,9 @@ rss = https://mediathekviewweb.de/feed?query=%23Professor%2BT.%20%20%3E40
|
|||
languages = ger
|
||||
ger = ^(?P<title>[^\(\)]*?)( - Staffel \d+)?(\s\(?!Audiodeskription\))?$
|
||||
thetvdb = 323666
|
||||
|
||||
[Friesland]
|
||||
rss = https://mediathekviewweb.de/feed?query=%23Friesland%20!ZDF
|
||||
languages = ger
|
||||
ger = ^(Friesland - )?(?P<title>[^\(\)]*?)(\s\(?!Audiodeskription\))?$
|
||||
thetvdb = 281351
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue