64 Commits (cf80adda9414a7cd67b5907641da0de5bb0f4d72)

Author SHA1 Message Date
Felix Stupp cf80adda94
Declare MediaCollection.release_date nullable 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 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 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
Felix Stupp ef09aea0b5
MediaElement: Add index to release_date 2 years ago
Felix Stupp e5dc2db760
MediaElement.watched: Fix column name 2 years ago
Felix Stupp 7ea87a1e0d
Use element_lookup_cache
- caches by what elements other elements are blocked
- resolves lookups for ordered playlists
2 years ago
Felix Stupp 05fcd9fb6a
MediaElement: add direct blockings 2 years ago
Felix Stupp 53185505b1
MediaElement.left_length: return 0 if watched 2 years ago
Felix Stupp a923d99e82
MediaElement.can_considered: Only request data for ordered collections 2 years ago
Felix Stupp cc8cb6b072
models: Redefine Query to be more usable for type hinting 2 years ago
Felix Stupp 85363aed4b
MediaElement.can_considered: verify video already released 2 years ago
Felix Stupp 5c97fe4b77
Implemented element_lookup_cache
- not used for now
2 years ago
Felix Stupp 96774bc43e
Add support for custom tables 2 years ago
Felix Stupp 902dd1a6bf
models:MediaCollection: Add creator / created_collections relation 2 years ago
Felix Stupp 6f9adbfc25
models: Make Query Type hacky typeable 2 years ago
Felix Stupp 2e9df67e86
models: Add optional description to MediaElement 2 years ago
Felix Stupp b7cbcbd540
Reformat models.py 2 years ago
Felix Stupp 44eb0850f0
Add thumbnail support to MediaElements 2 years ago
Felix Stupp d73cda2e5b
MediaCollection.completed: Rewrite to use orm/db mapping 3 years ago
Felix Stupp b42611f38c
MediaCollection.next_episode: Moved operation into orm/db 3 years ago
Felix Stupp 043c49c0e1
MediaCollection.__to_watch_epsiodes: Replaced watched/ignored check with skip_over 3 years ago
Felix Stupp 73a48f502c
Added PreferenceScore.get_first_by_score and used for performance 3 years ago
Felix Stupp 9d0fc6b08c
PreferenceScore: Add methods to pickle to/from json/base64 3 years ago
Felix Stupp 840a85c62f
MediaCollection.__to_watch_episodes: Add pony's Query as return type 3 years ago
Felix Stupp 0c205b2a43
MediaCollectionLink: Extract sort_key as replacement for natural_sort 3 years ago
Felix Stupp 20ce11b9e7
TagRootElement.share_score: Also abort if points to share are 0 3 years ago
Felix Stupp 5743b70d96
models ignored_recurive: Reworked for simplicity 3 years ago
Felix Stupp 099b3423e9
models ignored_recursive: Fix searching links for this episode 3 years ago
Felix Stupp 862cf78c74
models: Fix column name of MediaElement.ignored 3 years ago
Felix Stupp 629e125838
models: MediaCollection: Increase effiency of completed property 3 years ago
Felix Stupp 39d8c4f535
models: Add MediaCollection.pinned property 3 years ago
Felix Stupp 87b4fb03ea
models: Fix MediaElement.can_considered check for being next episode 3 years ago
Felix Stupp 5b78e8120c
add MediaCollection|MediaElement.add_single_uri and rewrite appropiate usages 3 years ago
Felix Stupp bf14abc887
models: Fix MediaElement.can_considered to check if next episode link is None 3 years ago
Felix Stupp f989f75806
models: Rewrite MediaElement.ignored_recursive to use fast SQL request to count 3 years ago