Skip to content

Commit

Permalink
Bump version v0.1.7
Browse files Browse the repository at this point in the history
  • Loading branch information
Fazzani committed Dec 24, 2024
1 parent 157012c commit 353ef9b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion data/config_playlist.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ cleannamefilter:
- "\\b(مسلسل)|(اغاني)|(طرب)|(مسلسلات)|(الفلم)|(فلم)|(الفيلم)|(الفیلم)|(فيلم)|(بودكاست)|(برنامج)|(مسرحية)\\b"
- "[!$%&«»°\"\\(\\)\\*\\+,\\.:/;<=>?@\\[\\]\\^_`{|}~◉\\-]"
- \\b(hevc)|(h265)|(XTRA)|(Subs)|(film)\\b"
- "\\b(sh|tu|us|jp|gb|ar|kr|es|de|fr|co|ca|dk|no|it|eg|nl)\\b$"
- "\\b(sh|tu|us|jp|gb|ar|kr|es|de|fr|co|ca|dk|no|it|eg|nl)\\b"
replacements:
- "عادل إمام"
- "اسماعيل ياسين"
Expand Down
8 changes: 7 additions & 1 deletion pliptv/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
STRM_EXT = ".strm"
TV_SERIES_REGEX = re.compile(r"(.+[\s])*(s\d{1,4})[^\w](e\d{1,4})", flags=re.IGNORECASE)
IS_ARABIC_REGEX = re.compile(r"[\u0600-\u06FF]")
REMOVE_YEAR_REGEX = re.compile(r"(20|19)\d{2}")

# TODO: combine using click with env variables and remove 'ask_information'
# TODO: notification when processing finished
Expand Down Expand Up @@ -213,8 +214,13 @@ def vod_processing(vod: bool, pl_info: dict[str, Any], playlist_config: Playlist
vod_list,
desc="VOD strm processing",
):
output_path: str = videos_output_path

match_tv_series = TV_SERIES_REGEX.search(stream.meta.display_name)
output_path: str = os.path.join(tv_series_output_path, match_tv_series.group(1).strip()) if match_tv_series else videos_output_path
if match_tv_series:
tv_folder_name = REMOVE_YEAR_REGEX.sub("", match_tv_series.group(1)).strip()
output_path: str = os.path.join(tv_series_output_path, tv_folder_name)

strm_output_fullpath: str = os.path.join(output_path, stream.meta.display_name.strip() + STRM_EXT)
try:
created_streams.append(strm_output_fullpath)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

setuptools.setup(
name="xplcli",
version="0.1.6",
version="0.1.7",
author="Heni FAZZANI",
author_email="[email protected]",
description="Simple extensible m3u playlist manager cli",
Expand Down

0 comments on commit 353ef9b

Please sign in to comment.