Remove tag param from video URLs

This commit is contained in:
Dylan
2024-05-27 21:46:32 +01:00
parent e192f9ae2b
commit 2ff14f5925
2 changed files with 3 additions and 1 deletions

View File

@ -31,6 +31,8 @@ def getApiResponse(tweet,include_txt=False,include_zip=False):
if j['content_type'] == "video/mp4" and '/hevc/' not in j["url"] and j['bitrate'] > best_bitrate:
besturl = j['url']
best_bitrate = j['bitrate']
if "?tag=" in besturl:
besturl = besturl[:besturl.index("?tag=")]
media.append(besturl)
extendedInfo["url"] = besturl
extendedInfo["type"] = "video"