Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Fazzani committed Dec 8, 2024
1 parent 7150608 commit bc0a940
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
6 changes: 3 additions & 3 deletions data/config_playlist.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ vodfilter:
regex:
- "\\.(mkv|avi|mp4|mpe?g|mov|wmv|flv|webm)$"
hidden_groups:
- "\\b(خليجية)|(جزائرية)|(مسيحية)|(يعرض)|(انمي)|(آسيوي)|(بودكاست)|(أجنبي)|(مدبلج)|(مترجم)|(منوعات)|(برامج)|(ليبيا)|(مغربية)|(أجنبية)|(آسيوية)|(هندية)|(مدبلجة)|(رعب)|(ألمانيه)|(مترجمة)|(تركية)|(اغاني)|(أغاني)|(طرب)|(رياضه\\sمتنوعه)\\b"
- "\\b(HANDBALL)|(F1)|(MOTO)|(FOOTBALL)|(wwe)|(CYCLISME)|(GOLF)|(BASKETBALL)|(WRC)|(Subs)|(Dub)|(Play)|(golf)\\b"
- "\\b(وثائقية)|(خليجية)|(جزائرية)|(مسيحية)|(يعرض)|(انمي)|(آسيوي)|(بودكاست)|(أجنبي)|(مدبلج)|(مترجم)|(منوعات)|(برامج)|(ليبيا)|(مغربية)|(أجنبية)|(آسيوية)|(أسيوية)|(هندية)|(أجنبيه)|(مدبلجة)|(رعب)|(ألمانيه)|(مترجمة)|(تركية)|(اغاني)|(أغاني)|(طرب)|(رياضه\\sمتنوعه)\\b"
- "\\b(handball)|(F1)|(moto)|(football)|(wwe)|(cyclisme)|(golf)|(basketball)|(wrc)|(subs)|(dub)|(play)|(golf)|(nordic)|(amazon)|(ESPAÑA)|(PERSIAN)|(DOCU\\-SERIES)|(OSN\\+)|(cam)\\b"

displaynamefilter:
priority: 2
Expand Down Expand Up @@ -53,7 +53,7 @@ shiftfilter:
cleannamefilter:
priority: 19
regex:
- "\\b(hevc)|(h265)|(XTRA)|(Subs)|(film)|(مسلسل)|(اغاني)|(طرب)|(مسلسلات)|(الفلم)|(فلم)|(الفيلم)|(الفیلم)|(فيلم)|(بودكاست)|(برنامج)|(مسرحية)\\b"
- "\\b(hevc)|(h265)|(XTRA)|(Subs)|(film)|(مسلسل)|(اغاني)|(طرب)|(مسلسلات)|(الفلم)|(فلم)|(الفيلم)|(الفیلم)|(فيلم)|(بودكاست)|(برنامج)|(مسرحية)|(sh)|(tu)\\b"
- "[!$%&«»°\"\\(\\)\\*\\+,\\.:/;<=>?@\\[\\]\\^_`{|}~◉\\-]"
replacements:
- "عادل إمام"
Expand Down
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def main(auto: bool, export: bool, is_generation_vod_enabled: bool, is_cache_ena

if export:
url: str = export_playlist(channels_list)
LOG.debug(f"Playlist Exported to: {url}", "white")
log(f"✓✓✓ Playlist exported to: {url}", "green")

vod_created_streams = vod_processing(is_generation_vod_enabled, pl_info, playlist_config, m3u)
if vod_created_streams:
Expand Down
6 changes: 5 additions & 1 deletion pliptv/pl_filters/display_name_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,15 @@ def apply(self, value: Stream) -> Stream:
Returns:
Tuple[Optional[str], str] -- culture, clean stream name
"""

quality_filter = re.compile(r"^((?:4k|8k)\s*[\-:|]*)", re.I)
for regex_compiled in map(
lambda x: re.compile(x, re.I | re.U),
self.filter_config.regex,
):
match = quality_filter.match(value.meta.display_name)
if match:
value.meta.display_name = value.meta.display_name.replace(match.group(1), "") + f" {match.group(1)}"

match = regex_compiled.match(value.meta.display_name.replace("◉", "ar"))
if match and len(match.groups()) > 1:
value.meta.culture = match.group(1).strip().lower()
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

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

0 comments on commit bc0a940

Please sign in to comment.