diff options
author | Sergey M․ <dstftw@gmail.com> | 2019-05-11 03:56:22 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2019-05-11 03:57:40 +0700 |
commit | 3089bc748c0fe72a0361bce3f5e2fbab25175236 (patch) | |
tree | 2dbe8468137470f25f851b8d06778e2dcab87d25 /youtube_dl/downloader/hls.py | |
parent | d23e85515a8f58e276e8ac07bf1fa19f4f1aaec8 (diff) |
Fix W504 and disable W503 (closes #20863)
Diffstat (limited to 'youtube_dl/downloader/hls.py')
-rw-r--r-- | youtube_dl/downloader/hls.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/youtube_dl/downloader/hls.py b/youtube_dl/downloader/hls.py index 419e73576..b59aad73f 100644 --- a/youtube_dl/downloader/hls.py +++ b/youtube_dl/downloader/hls.py @@ -76,12 +76,12 @@ class HlsFD(FragmentFD): return fd.real_download(filename, info_dict) def is_ad_fragment_start(s): - return (s.startswith('#ANVATO-SEGMENT-INFO') and 'type=ad' in s or - s.startswith('#UPLYNK-SEGMENT') and s.endswith(',ad')) + return (s.startswith('#ANVATO-SEGMENT-INFO') and 'type=ad' in s + or s.startswith('#UPLYNK-SEGMENT') and s.endswith(',ad')) def is_ad_fragment_end(s): - return (s.startswith('#ANVATO-SEGMENT-INFO') and 'type=master' in s or - s.startswith('#UPLYNK-SEGMENT') and s.endswith(',segment')) + return (s.startswith('#ANVATO-SEGMENT-INFO') and 'type=master' in s + or s.startswith('#UPLYNK-SEGMENT') and s.endswith(',segment')) media_frags = 0 ad_frags = 0 |