Skip to content

Commit

Permalink
Add handling non-obfuscated situations
Browse files Browse the repository at this point in the history
  • Loading branch information
interlark committed Sep 23, 2022
1 parent 538bf32 commit c6842a1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions 123tv_iptv.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,12 @@ def extract_obfuscated_link(content: str) -> str:
"""
)

ob_line = content[content.index(start_text) + len(start_text):].splitlines()[0]
a, b, c = ob_line.split('};')
data_part, key = '', ''
ob_line = content[content.index(start_text) + len(start_text):].splitlines()[0]
try:
a, b, c = ob_line.split('};')
except ValueError:
return ''

# Parse data
arr = re.search(r'(?<=\[)[^\]]+(?=\])', a)
Expand Down

0 comments on commit c6842a1

Please sign in to comment.