Felix Stupp
9ffb34b972
Use ExtractedDataLight where data cannot be supplied
3 years ago
Felix Stupp
d6768135f3
MediaExtractor: Fix type hints to Generic from super class
3 years ago
Felix Stupp
9c7fd0d4cd
Extract media_extract_uri_new from media_extract_uri
3 years ago
Felix Stupp
0554dcff18
Extract collection_extract_uri_new from collection_extract_uri
3 years ago
Felix Stupp
af1c279eb3
YouTubeCollectionExtractor: Set creator if already extracted
3 years ago
Felix Stupp
9b31fb73cb
YouTubeCollectionExtractor: Set a release_date determined by first video
3 years ago
Felix Stupp
cacc6e9a05
YouTubeCollectionExtractor: Reformat code
3 years ago
Felix Stupp
4a690688f6
YouTubeCollectionExtractor: Use sorting_method to sort channel videos by date
3 years ago
Felix Stupp
8f100ad917
YouTubeCollectionExtractor: Extract description
3 years ago
Felix Stupp
7913cd3561
YouTubeCollectionExtractor: allow partial-only updates on channels
3 years ago
Felix Stupp
2dd0b575fa
TT-RSS: Set collection author & watch in order auto val
3 years ago
Felix Stupp
e4a50288d6
Enable mark_as_read for TT-RSS extractor
3 years ago
Felix Stupp
081964a336
Add many properties to MediaCollection
3 years ago
Felix Stupp
fc35a62871
Extract set_watch_in_order_auto to MediaCollection
3 years ago
Felix Stupp
97796ce499
Remove unused methods from PreferenceScore
...
- order_by_score & get_first_by_score
- easily replaceable by sorted / min calls
3 years ago
Felix Stupp
8cedaee7ba
generate_preference_score: Add static scores
...
for following properties:
- id (for consistent order)
- age
- began to watch
- count of tags
- times pinned
3 years ago
Felix Stupp
3c64bc6f66
generate_preference_score: Add auto tag for extractor
3 years ago
Felix Stupp
0e266c55b6
generate_preference_list: Use set instead of recalling object_gen
...
- removes advanced feature of listing blocked videos ahead
- was not practical for UI as videos were displayed which "require" others
- using a set to manage still to consider videos makes method way faster
3 years ago
Felix Stupp
bd77ed7fb0
generate_preference_list: Move var res_ids to appropiate section
3 years ago
Felix Stupp
0599b03daa
generate_preference_list: Separate sections of god method
3 years ago
Felix Stupp
1145a09e3e
generate_preference_list: Add "collection tags" by iter collections
...
itering collections than elements for their collections is most of the
time faster as mostly all collections are involved
3 years ago
Felix Stupp
748201ec2b
generate_preference_list: Revert Tag table auto incr value
...
- not reverted by default when ROLLBACK on MariaDB is issued
- resetting to 1 works because DB will still ensure no duplicates occure
3 years ago
Felix Stupp
7b96a6e2c6
Add MediaCollectionLink.desc_sort_key
3 years ago
Felix Stupp
0b44e77677
Reorder attributes of MediaCollection
3 years ago
Felix Stupp
7248ef96cd
entertainment_decider/models: Add return types for mypy
3 years ago
Felix Stupp
e53ffccef3
Reorder & categorize MediaElement attributes
3 years ago
Felix Stupp
9ea4a728d6
Rework Tagable implementation
...
Split into orm compatible & non-compatible methods
FIX Tagable on MediaElement
FIX Tagable MediaColl
3 years ago
Felix Stupp
c7b63dfedb
models: Fix build of custom table defs
...
- missing .items() call for "for" with dict
- missing db session on setup
3 years ago
Felix Stupp
bbaa79f20a
models:table_exists: use pony-given approach
3 years ago
Felix Stupp
51a13abb88
entertainment_decider/models: Remove TODO about static table names
3 years ago
Felix Stupp
fd7d413fe2
Add MediaElement properties detected_{creators,playlists}
3 years ago
Felix Stupp
c8d755770f
Allow PreferenceScore.adapt_score to apply only flat
3 years ago
Felix Stupp
c766ca1c58
Reformat PreferenceScore.adapt_score
3 years ago
Felix Stupp
ee9f89a87d
Tagable: Implement tag_hierachy & all_tags separately
...
Other implementation of all_tags makes it much, much faster
3 years ago
Felix Stupp
d56cf1ae94
TagTreeElement.shareScore: Filter tags for score sharing by use_for_preferences
3 years ago
Felix Stupp
760010e743
Rewrite PreferenceScore.(from|to)_base64 to method chaining
...
Solves mypy issues while looking clean
3 years ago
Felix Stupp
a039aafff2
PreferenceScore.calculate_score improved
3 years ago
Felix Stupp
4f0c8cb82d
Adapt to renaming send_file parameters of Flask
3 years ago
Felix Stupp
cf80adda94
Declare MediaCollection.release_date nullable
3 years ago
Felix Stupp
51c1ee5c08
Add missing Optional on _load_object & use explcit is None checks
3 years ago
Felix Stupp
2214df4561
Add capability to inject episodes from collection updates
3 years ago
Felix Stupp
7c96aaa6a7
Avoid circular dependency by moving import into function
3 years ago
Felix Stupp
39b3ac278b
extractors: Add & Fix return types
...
tt_rss's _update_object_raw should have never returned a str
3 years ago
Felix Stupp
7c5d8e7748
entertainment_decider/models: Clean code for mypy
...
- add return types
- rename used TypeVar to avoid override
- adapt type of MediaCollection.creator to reflect Optionality
3 years ago
Felix Stupp
c59000847d
Decrease external cache time for ytdl to 1 day
3 years ago
Felix Stupp
94fc20cb89
Declare entertainment_decider/extractors a module
...
by creating an empty __init__.py
3 years ago
Felix Stupp
6ab8781520
Add way to inject object while extracting
...
To save extracting work, if e.g. updating a collection also receives
data about medias in it (which then do not need any more requests)
3 years ago
Felix Stupp
ae047a0c47
extractors/generic: Clean code
...
- Reformat
- Add return types
- Remove unrequired imports
3 years ago
Felix Stupp
5d68e03971
common: Add helper for string trimming
...
like defined in PEP 257
3 years ago
Felix Stupp
43e1d6902f
common: Add helper to convert date to datetime
3 years ago