Felix Stupp
c51a9acbe9
generate_preference_list: Declare base as optional
2 years ago
Felix Stupp
081964a336
Add many properties to MediaCollection
2 years ago
Felix Stupp
fc35a62871
Extract set_watch_in_order_auto to MediaCollection
2 years ago
Felix Stupp
97796ce499
Remove unused methods from PreferenceScore
...
- order_by_score & get_first_by_score
- easily replaceable by sorted / min calls
2 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
2 years ago
Felix Stupp
3c64bc6f66
generate_preference_score: Add auto tag for extractor
2 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
2 years ago
Felix Stupp
bd77ed7fb0
generate_preference_list: Move var res_ids to appropiate section
2 years ago
Felix Stupp
0599b03daa
generate_preference_list: Separate sections of god method
2 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
2 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
2 years ago
Felix Stupp
7b96a6e2c6
Add MediaCollectionLink.desc_sort_key
2 years ago
Felix Stupp
0b44e77677
Reorder attributes of MediaCollection
2 years ago
Felix Stupp
7248ef96cd
entertainment_decider/models: Add return types for mypy
2 years ago
Felix Stupp
e53ffccef3
Reorder & categorize MediaElement attributes
2 years ago
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
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