[twitter] add extractor for media-tweet timelines (#96)

For example "https://twitter.com/PicturesEarth/media".
They are different from normal timelines in that they do not contain
any (re)tweets from other users and feature all media the user ever
posted, including responses to other tweets.
This commit is contained in:
Mike Fährmann
2018-08-19 20:36:33 +02:00
parent f45c9f2141
commit e9dd2eff1d
4 changed files with 46 additions and 30 deletions

View File

@@ -68,6 +68,7 @@ SUBCATEGORY_MAP = {
"issue" : "Comic-Issues",
"manga" : "Manga",
"me" : "pixiv.me Links",
"media" : "Media Tweets",
"path" : "Images from Users and Folders",
"pinit" : "pin.it Links",
"popular": "Popular Images",
@@ -226,6 +227,8 @@ def category_key(extrlist):
def subcategory_key(cls):
if cls.subcategory in ("user", "issue"):
return "A"
if cls.subcategory in ("media",):
return "z"
return cls.subcategory