mirror of https://gitlab.com/bashrc2/epicyon
Less indentation
parent
8ca03c3e20
commit
0aec071dea
6
utils.py
6
utils.py
|
@ -5306,8 +5306,10 @@ def get_media_url_from_video(post_json_object: {}) -> (str, str, str, str):
|
|||
media_url = None
|
||||
media_torrent = None
|
||||
media_magnet = None
|
||||
if post_json_object.get('url'):
|
||||
if isinstance(post_json_object['url'], list):
|
||||
if not post_json_object.get('url'):
|
||||
return media_type, media_url, media_torrent, media_magnet
|
||||
if not isinstance(post_json_object['url'], list):
|
||||
return media_type, media_url, media_torrent, media_magnet
|
||||
for media_link in post_json_object['url']:
|
||||
if not isinstance(media_link, dict):
|
||||
continue
|
||||
|
|
Loading…
Reference in New Issue