486 Commits (0ab972bbf5fa71d493008b64b9f6275e505f3c1f)
 

Author SHA1 Message Date
Felix Stupp 9ea4a728d6
Rework Tagable implementation
Split into orm compatible & non-compatible methods

FIX Tagable on MediaElement

FIX Tagable MediaColl
2 years ago
Felix Stupp c7b63dfedb
models: Fix build of custom table defs
- missing .items() call for "for" with dict
- missing db session on setup
2 years ago
Felix Stupp bbaa79f20a
models:table_exists: use pony-given approach 2 years ago
Felix Stupp 51a13abb88
entertainment_decider/models: Remove TODO about static table names 2 years ago
Felix Stupp fd7d413fe2
Add MediaElement properties detected_{creators,playlists} 2 years ago
Felix Stupp c8d755770f
Allow PreferenceScore.adapt_score to apply only flat 2 years ago
Felix Stupp c766ca1c58
Reformat PreferenceScore.adapt_score 2 years ago
Felix Stupp ee9f89a87d
Tagable: Implement tag_hierachy & all_tags separately
Other implementation of all_tags makes it much, much faster
2 years ago
Felix Stupp d56cf1ae94
TagTreeElement.shareScore: Filter tags for score sharing by use_for_preferences 2 years ago
Felix Stupp 760010e743
Rewrite PreferenceScore.(from|to)_base64 to method chaining
Solves mypy issues while looking clean
2 years ago
Felix Stupp a039aafff2
PreferenceScore.calculate_score improved 2 years ago
Felix Stupp 4f0c8cb82d
Adapt to renaming send_file parameters of Flask 2 years ago
Felix Stupp cf80adda94
Declare MediaCollection.release_date nullable 2 years ago
Felix Stupp 51c1ee5c08
Add missing Optional on _load_object & use explcit is None checks 2 years ago
Felix Stupp 2214df4561
Add capability to inject episodes from collection updates 2 years ago
Felix Stupp 7c96aaa6a7
Avoid circular dependency by moving import into function 2 years ago
Felix Stupp 39b3ac278b
extractors: Add & Fix return types
tt_rss's _update_object_raw should have never returned a str
2 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
2 years ago
Felix Stupp c59000847d
Decrease external cache time for ytdl to 1 day 2 years ago
Felix Stupp 94fc20cb89
Declare entertainment_decider/extractors a module
by creating an empty __init__.py
2 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)
2 years ago
Felix Stupp ae047a0c47
extractors/generic: Clean code
- Reformat
- Add return types
- Remove unrequired imports
2 years ago
Felix Stupp 5d68e03971
common: Add helper for string trimming
like defined in PEP 257
2 years ago
Felix Stupp 43e1d6902f
common: Add helper to convert date to datetime 2 years ago
Felix Stupp ddb248ca62
common: Add type hints to call helper 2 years ago
Felix Stupp 051d4a7ccd
Added logging to suitable extractor search 2 years ago
Felix Stupp f8b9825a2a
TtRssCollectionExtractor: Increase cache timeout to 15 minutes 2 years ago
Felix Stupp e486dccf8e
Add capability to mark TT-RSS feed items as read 2 years ago
Felix Stupp 321847446b
Add sorting mechanism post collection update
e.g. sort some collections strictly on release date
(if collection author is not capable of sorting them ...)
2 years ago
Felix Stupp f51cbc31c3
CollectionExtractor._add_episode: Only log on link change 2 years ago
Felix Stupp a1b64d8644
extractors/collection/base: Reformat code 2 years ago
Felix Stupp ed8fc4439e
Introduce dynamic cache calculation for YouTube collection 2 years ago
Felix Stupp 49cff6f300
uri_suitable: Explicitly check for "is not None" & use helper methods
- helper for convertion from boolean to SuitableLevel
2 years ago
Felix Stupp 54748a9540
_check_cache_expired modified to be able to access full object
for more advanced calculations about caching
2 years ago
Felix Stupp 2e97563e0e
YtdlMediaExtractor._update_object_raw: Add return type 2 years ago
Felix Stupp bdfcd43a5f
models: Extract common Uri methods to own class 2 years ago
Felix Stupp f282ad7ff1
Add property MediaElement.average_release_per_week{,_now} 2 years ago
Felix Stupp 9e4b2bab5e
Add property MediaElement.started 2 years ago
Felix Stupp 3f68d4c5fd
MediaThumbnail.data: Add reason for lazy setting 2 years ago
Felix Stupp a9cae7ab1e
MediaCollection: Add indices to keep_updated, pinned, watch_in_order
for faster DB requests
2 years ago
Felix Stupp abf01da286
MediaElement: Add indeces to watched & ignored & compositum of both 2 years ago
Felix Stupp 5267f98cad
Add MediaCollection.description attribute / column 2 years ago
Felix Stupp 214cfdffba
MediaCollection.add_episode: automatically mark new episodes or ignored colls as ignored 2 years ago
Felix Stupp fac70231e8
MediaCollection.add_episde: detect change & act accordingly
- only apply changes if episode is new or new data is given
- flush only if changes are given
- return link only on changes / creation
2 years ago
Felix Stupp 4a0a6b918a
models.py: Reformat code 2 years ago
Felix Stupp 52a5aa29d7
models: Make table names non-hardcoded 2 years ago
Felix Stupp 66c37e72aa
models: Extract table name "element_lookup_cache" to constant 2 years ago
Felix Stupp f810591c2c
Revert "Add ConsideredMediaGenerator"
This reverts commit a5844cc424,
because developed method was not fast enough & it was faster to use a
SQL native method developed afterwards
2 years ago
Felix Stupp a5844cc424
Add ConsideredMediaGenerator
Developed for faster method to find considerable media
2 years ago
Felix Stupp 7e5e58c487
models.py: Reformated code 2 years ago