Skip to content

Commit

Permalink
fix: remove query and fragment
Browse files Browse the repository at this point in the history
  • Loading branch information
nuomi1 committed Oct 4, 2022
1 parent f4e36b3 commit 568ee3e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/you_get/extractors/missevan.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import json
import os
import re
import urllib.parse

from ..common import get_content, urls_size, log, player, dry_run
from ..extractor import VideoExtractor
Expand Down Expand Up @@ -99,7 +100,8 @@ def is_covers_stream(stream):
return stream.lower() in ('covers', 'coversmini')

def get_file_extension(file_path, default=''):
_, suffix = os.path.splitext(file_path)
url_parse_result = urllib.parse.urlparse(file_path)
_, suffix = os.path.splitext(url_parse_result.path)
if suffix:
# remove dot
suffix = suffix[1:]
Expand Down

0 comments on commit 568ee3e

Please sign in to comment.