misc fixes

- fix typo (#3399)
- remove double assignment
- [bunkr] update things I forgot in 6b6f886d
- [soundgasm] adjust 'archive_fmt' (#3388)
This commit is contained in:
Mike Fährmann
2022-12-12 16:02:01 +01:00
parent 41bf236d36
commit 3082544fff
4 changed files with 5 additions and 5 deletions

View File

@@ -68,12 +68,12 @@ class BunkrAlbumExtractor(LolisafeAlbumExtractor):
"count" : len(files),
}
headers = {"Referer": root.replace("://", "://stream.", 1)}
headers = {"Referer": root.replace("://", "://stream.", 1) + "/"}
for file in files:
if file["file"].endswith(
(".mp4", ".m4v", ".mov", ".webm", ".zip", ".rar", ".7z")):
file["_http_headers"] = headers
file["file"] = file["file"].replace(
"//cdn", "//media-files", 1)
"://cdn", "://media-files", 1)
return files, data

View File

@@ -19,7 +19,7 @@ class SoundgasmAudioExtractor(Extractor):
root = "https://soundgasm.net"
directory_fmt = ("{category}", "{user}")
filename_fmt = "{title}.{extension}"
archive_fmt = "{user}_{filename}"
archive_fmt = "{user}_{slug}"
pattern = (r"(?:https?://)?(?:www\.)?soundgasm\.net"
r"/u(?:ser)?/([^/?#]+)/([^/?#]+)")
test = (

View File

@@ -886,7 +886,7 @@ class TwitterBackgroundExtractor(TwitterExtractor):
def tweets(self):
self.api._user_id_by_screen_name(self.user)
user = user = self._user_obj
user = self._user_obj
try:
url = user["legacy"]["profile_banner_url"]

View File

@@ -218,7 +218,7 @@ class ModuleFormatter():
class FStringFormatter():
"""Generate text by evaluaring an f-string literal"""
"""Generate text by evaluating an f-string literal"""
def __init__(self, fstring, default=NONE, fmt=None):
self.format_map = util.compile_expression("f'''" + fstring + "'''")