Get url path before unquote + change Thumbnail check
All threads resolved!
All threads resolved!
Get the url path before using unquote
, circumventing problems with encoded special characters like '?'.
Get rid of the paths leading '/' so that the following if statements still work (this also gets rid of .lstrip(config['VIDEOPREFIX'])
).
Change the auth check for thumbnails, from checking the ending('.jpg') to checking the beginning ('thumbnails/').
Merge request reports
Activity
- Resolved by Magnus Giesbert
Auch wenn hier halb OT: wie hat der check
startswith('pub/hls/')
jemals funktioniert wenn man vorher.lstrip(config['VIDEOPREFIX'])
benutzt hat?
lstrip nimmt ja alle trailing characters weg die es gegeben bekommt und nicht nur einen prefix der dem gegebenen string entspricht (siehe dazu auch https://stackabuse.com/python-remove-the-prefix-and-suffix-from-a-string/).
added 1 commit
- 7e2b5653 - Strip the videoprefix and the following / from the path.
Please register or sign in to reply