[pholder] restore 'subredditTitle' (#9067)
Some checks failed
Docker Images / build (push) Has been cancelled
Executables / build (x64, macOS-latest, , 3.13) (push) Has been cancelled
Executables / build (x64, ubuntu-latest, secretstorage, 3.13) (push) Has been cancelled
Executables / build (x64, windows-latest, , 3.13) (push) Has been cancelled
Executables / build (x86, windows-2022, toml, 3.8) (push) Has been cancelled
Tests / test (3.10) (push) Has been cancelled
Tests / test (3.11) (push) Has been cancelled
Tests / test (3.12) (push) Has been cancelled
Tests / test (3.13) (push) Has been cancelled
Tests / test (3.14) (push) Has been cancelled
Tests / test (3.8) (push) Has been cancelled
Tests / test (3.9) (push) Has been cancelled
Tests / test (pypy3.11) (push) Has been cancelled
Tests / test (pypy3.9) (push) Has been cancelled
Executables / release (push) Has been cancelled
Some checks failed
Docker Images / build (push) Has been cancelled
Executables / build (x64, macOS-latest, , 3.13) (push) Has been cancelled
Executables / build (x64, ubuntu-latest, secretstorage, 3.13) (push) Has been cancelled
Executables / build (x64, windows-latest, , 3.13) (push) Has been cancelled
Executables / build (x86, windows-2022, toml, 3.8) (push) Has been cancelled
Tests / test (3.10) (push) Has been cancelled
Tests / test (3.11) (push) Has been cancelled
Tests / test (3.12) (push) Has been cancelled
Tests / test (3.13) (push) Has been cancelled
Tests / test (3.14) (push) Has been cancelled
Tests / test (3.8) (push) Has been cancelled
Tests / test (3.9) (push) Has been cancelled
Tests / test (pypy3.11) (push) Has been cancelled
Tests / test (pypy3.9) (push) Has been cancelled
Executables / release (push) Has been cancelled
https://github.com/mikf/gallery-dl/pull/9067#issuecomment-3904674984
This commit is contained in:
@@ -62,6 +62,7 @@ class PholderExtractor(Extractor):
|
|||||||
data = item["_source"]
|
data = item["_source"]
|
||||||
data["id"] = item["_id"]
|
data["id"] = item["_id"]
|
||||||
data["date"] = self.parse_timestamp(data.get("submitted_utc"))
|
data["date"] = self.parse_timestamp(data.get("submitted_utc"))
|
||||||
|
data["subredditTitle"] = data.pop("sub", "")
|
||||||
|
|
||||||
if ":" in data["id"]:
|
if ":" in data["id"]:
|
||||||
# this is a gallery
|
# this is a gallery
|
||||||
@@ -112,7 +113,6 @@ class PholderSubredditExtractor(PholderExtractor):
|
|||||||
class PholderUserExtractor(PholderExtractor):
|
class PholderUserExtractor(PholderExtractor):
|
||||||
"""Extractor for URLs from pholder-stored posts for a reddit user"""
|
"""Extractor for URLs from pholder-stored posts for a reddit user"""
|
||||||
subcategory = "user"
|
subcategory = "user"
|
||||||
directory_fmt = ("{category}", "u_{author}")
|
|
||||||
pattern = BASE_PATTERN + r"(/u/[^/?#]+)(?:/?\?([^#]+))?"
|
pattern = BASE_PATTERN + r"(/u/[^/?#]+)(?:/?\?([^#]+))?"
|
||||||
example = "https://www.pholder.com/u/USER"
|
example = "https://www.pholder.com/u/USER"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user