Felix Stupp
00b838fea7
stats: Add overall progress
2 years ago
Felix Stupp
3c7bb0fe68
templates: move stats.htm to stats/main.htm
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
5dd2e85035
app.py: Remove calls to not yet commited function
2 years ago
Felix Stupp
4dc3cfe98b
app: Pin directory for static files to default one
2 years ago
Felix Stupp
d014a06d60
server: Reformat code
2 years ago
Felix Stupp
dcd8952604
server: Disable DB debug mode by default
2 years ago
Felix Stupp
a3af276918
Fix adding began videos to dashboard
...
Missed to pass began videos from DB to template
2 years ago
Felix Stupp
bf4ba5b0ac
Fix applying env config converters correctly
...
- replacing on `is not None` wasn't implemented correctly
2 years ago
Felix Stupp
b589b4b42c
add support for configuring pony's DB port
2 years ago
Felix Stupp
2a7654bf9f
Add helper annotation for profiling functions
2 years ago
Felix Stupp
3cfe880ac0
app: remove unused import
2 years ago
Felix Stupp
babdf8ff64
extr/media/youtube: Reraise exceptions from extraction as ExtractionErrors
2 years ago
Felix Stupp
33ac573a57
extr/media/youtube: Ignore live streams until they are available as VOD
2 years ago
Felix Stupp
922c9fd5a2
extr/media/youtube: Rename extractor to "youtube"
2 years ago
Felix Stupp
0debf4d875
extr/media/youtube: support embed & shorts video links
2 years ago
Felix Stupp
5479db90b8
extr/media/youtube: Also support youtube-nocookie links
2 years ago
Felix Stupp
35024597df
extr/media/youtube: Rewrite URI so extractor works deteministicly
2 years ago
Felix Stupp
6bb65981c9
extr/media/youtube: Explicit check for suitable URI
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
96e12f6fe8
extr/coll,media/youtube: Move setting URLs to media extractor
2 years ago
Felix Stupp
4e62a3fe70
extr/media/youtube: Extract description
2 years ago
Felix Stupp
c9c60d4e2b
extr/media/ytdl: Extract description
2 years ago
Felix Stupp
2e9df67e86
models: Add optional description to MediaElement
2 years ago
Felix Stupp
683a7a2555
extr/media/ytdl: Add thumbnail of video
2 years ago
Felix Stupp
cfa3012798
extr/media/ytdl: Restrict to https?:// urls
2 years ago
Felix Stupp
f0af32c099
Extract media thumbnail automatically from YouTube
2 years ago
Felix Stupp
dfee06106f
ent_dec/extr/med/base:MediaExtractor._get_auth_d: Fix not using TypeVar
2 years ago
Felix Stupp
f236db4084
Format code
...
- server/entertainment_decider/common.py
- server/entertainment_decider/extractors/all/tt_rss.py
- server/entertainment_decider/extractors/all/ytdl.py
- server/entertainment_decider/extractors/collection/__init__.py
- server/entertainment_decider/extractors/collection/tt_rss.py
- server/entertainment_decider/extractors/collection/youtube.py
- server/entertainment_decider/extractors/generic.py
- server/entertainment_decider/extractors/helpers.py
- server/entertainment_decider/extractors/media/__init__.py
- server/entertainment_decider/extractors/media/base.py
- server/entertainment_decider/extractors/media/youtube.py
- server/entertainment_decider/extractors/media/ytdl.py
Applied automatically using black
2 years ago
Felix Stupp
b7cbcbd540
Reformat models.py
2 years ago
Felix Stupp
a76eb796ee
dashboard: Add began videos
2 years ago
Felix Stupp
f0bf0a333c
dashboard(): Apply limit of links_f_pinned_colls at end
2 years ago
Felix Stupp
958b815277
dashboard: Sort links of pinned collections by release date
2 years ago
Felix Stupp
e26817e6db
dashboard(): Rework pinned colls usage of already_listed
...
- moved to single update command for more performance
- required additional check in other set if link already given
- feels more unified to other, upcoming implementations
2 years ago
Felix Stupp
5843992af1
dashboard(): Rework links_f_pinned_colls var to be set
2 years ago
Felix Stupp
c2eb7a3d6a
dashboard(): rename & replace already_listed var
2 years ago
Felix Stupp
47d823d56f
Format code
2 years ago
Felix Stupp
c081486eca
dashboard: increase limits
2 years ago
Felix Stupp
5d6f781f15
Add (force) refresh button for media
2 years ago
Felix Stupp
705eddd327
force_refresh_collection: Ignore cache timeout check
2 years ago
Felix Stupp
c12b96a00b
refresh_collections: Return error messages
2 years ago
Felix Stupp
b15cdaed9a
Remove "Old Variety" recommendations
...
- will be replaced with adaptive recommendations
2 years ago
Felix Stupp
85b748f5e6
Remove Binge recommendations
...
- will be replaced with
- single video recommendations
- adaptive recommendations
2 years ago
Felix Stupp
374f08dec9
server/app: import single names from datetime module
2 years ago
Felix Stupp
3fea70f584
api_collection_element: Explain TODO for wio_auto better
2 years ago
Felix Stupp
65f7f3ac9d
api_colllection_element: Update wio_auto after other value changes
2 years ago
Felix Stupp
2bb9e78e63
api_collection_extract: Rename var m to c for collection
2 years ago
Felix Stupp
e727561355
Add route for media thumbnails
2 years ago
Felix Stupp
44eb0850f0
Add thumbnail support to MediaElements
2 years ago
Felix Stupp
d41f2d2945
Format code
2 years ago
Felix Stupp
c5eecef42d
Add "last updated" to stats page
...
- inferred by looking at last updated collections
- may be wrong if "add collection" was used, but should work fine most times
2 years ago
Felix Stupp
bd72ad77bb
Reformat code (partially using black)
2 years ago
Felix Stupp
4e6e646c87
server/.gitignore: Exclude sql files
2 years ago
Felix Stupp
188bf369aa
Hide collection elements and link to subpage for big collections
3 years ago
Felix Stupp
dc0b8d0867
templates/collection_element: Order episodes after links
3 years ago
Felix Stupp
29472e42a2
Sort links on element pages to ensure same generated sites
3 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
d0c2aab529
Added youtube media extractor based on new version of youtubesearchpython
3 years ago
Felix Stupp
075b0a544c
extractors.SuitableLevel: Added methods for fancy tenary's
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
a51aa48941
extractors/collection: Extract _add_episode into base
3 years ago
Felix Stupp
629e125838
models: MediaCollection: Increase effiency of completed property
3 years ago
Felix Stupp
b41ecfb080
server: Add endpoint for unsorted media
3 years ago
Felix Stupp
7b4112b960
server: Added endpoint for short media
3 years ago
Felix Stupp
1e2a7b2569
app: Add endpoint for listing collections with unwatched episodes
3 years ago
Felix Stupp
4fbbb71254
server: Extract _list_collections from list_collections endpoint
3 years ago
Felix Stupp
0c1b82a9cd
Add general overall dashboard
3 years ago
Felix Stupp
cb0d5dae29
app: Add simple page for pinned collections
3 years ago
Felix Stupp
60ba3c8919
collection_element.htm: Add UI for pinned property
3 years ago
Felix Stupp
8100e2efce
app: Add pinned to be a property modifiably using API
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
70805c18de
Add generic body_header with navigation bar
3 years ago
Felix Stupp
03a97fc975
app: Convert refresh collection(s) API endpoints to POST
...
- following REST specification that GET should never change data
3 years ago
Felix Stupp
269db05250
app: Remove depreacted page /media/length
3 years ago
Felix Stupp
2e19d06f93
macros.htm: Extract link_position_marker() macro
3 years ago
Felix Stupp
76024c0e12
macros.htm: Extracted macro media_table from media_list.htm
3 years ago
Felix Stupp
94ac7028be
media_list.htm: Remove progress column as not required anymore
3 years ago
Felix Stupp
cb91ec1325
macros.htm: Add support to send progress to client on using play button
3 years ago
Felix Stupp
66502e5c08
server: moved as_play_link from being a filter to a macro
3 years ago
Felix Stupp
0e468d457f
macros.htm: Fix support for fragments in hidden_redirect_back
3 years ago
Felix Stupp
3c7310f970
media_element.htm: Add tags to info
3 years ago
Felix Stupp
adf95f3e5c
media_element.htm: Add info about length with progress
3 years ago
Felix Stupp
e119f55640
Add recommendation pages for variety and binge
3 years ago
Felix Stupp
23c079abc1
app: Added API endpoint to update all collections and specific ones
3 years ago
Felix Stupp
381ec54796
Added page for UI for tag list
3 years ago
Felix Stupp
ce01248ec2
app: Added stats used in frontend
3 years ago
Felix Stupp
e16920b9f7
Add endpoint and UI page for extracting new collections
3 years ago
Felix Stupp
9263e43161
app: Remove unused endpoint update_collection
3 years ago
Felix Stupp
835ce40f89
collection_list.htm: Add tags as column
3 years ago
Felix Stupp
53cc489026
collection_list.htm: Add id as column
3 years ago
Felix Stupp
b20cc7b0f2
collection_list.htm: Add ignored count as column
3 years ago
Felix Stupp
bc03d086ca
collection_list.htm: Move title column at end
3 years ago
Felix Stupp
b2728c36c9
collection_element: Add tags to UI
3 years ago
Felix Stupp
20820eb3cb
collection_element.htm: Add stats to element info
3 years ago
Felix Stupp
67569da5f6
collection_element: Fix post_form for keep_updated to check same property
3 years ago
Felix Stupp
0d51df0dc6
media_list: Replace length column with "to watch"/"left length"
3 years ago
Felix Stupp
0fc1a1ec0d
media_list.htm: Change length row to fancy length format
3 years ago
Felix Stupp
5b78e8120c
add MediaCollection|MediaElement.add_single_uri and rewrite appropiate usages
3 years ago
Felix Stupp
c77e0ac81e
entertainment_decider/extractors/generic: Add debug log for skipped elements due to cache timeout
3 years ago
Felix Stupp
18ec39e7b2
extractors/collection/tt_rss: Remove debug priting for labels
3 years ago
Felix Stupp
b982f7b5bb
extractors/collection/tt_rss: Decrease cache timeout to 10 minutes
3 years ago
Felix Stupp
c99c69b7df
extractors/collection/*: Fix check for cache timeout
3 years ago
Felix Stupp
6b45d0fbd1
extractors/{collection,media}: Add *_update method
3 years ago
Felix Stupp
4d5f5ea4d4
extractors/{collection,media}: Extract *_expect_extractor "partial" method
3 years ago
Felix Stupp
ab61adbf38
macros.htm media_entry_content: Add length as visible property
3 years ago
Felix Stupp
6e002db353
Added API endpoint media/extract and simple UI page
3 years ago
Felix Stupp
e37bbd60f0
macros.htm: Extract macro hidden_redirect_back() from post_form()
3 years ago
Felix Stupp
2c8ac872cb
macros.htm: Colorize links darkblue instead of blue
3 years ago
Felix Stupp
ed7115b945
macros.htm: Colorize table rows alternating
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
Felix Stupp
bf548f13ad
models: let MediaElement.left_length return 0 if video already watched
3 years ago
Felix Stupp
26ea1d6451
models: Add missing "super_tags" property to Tag
3 years ago
Felix Stupp
d32e8feddd
models: Fix Tagable to correctly return TagTreeElement's and not Tags
3 years ago
Felix Stupp
37e7d602e8
models.py: Fix Tagable.assigned_tags to raise NotImplementedError
3 years ago
Felix Stupp
04d73f253d
models: Fix points on (TagRootElement|TagTreeElement).share_score to be float
3 years ago
Felix Stupp
f2d35e0c92
media_list.htm: Remove "Consider" column as always yes
3 years ago
Felix Stupp
5d59a85f8c
media_list.htm: Remove full length at top (replaced with /stats page)
3 years ago
Felix Stupp
b34c563ea8
Filter general media list to newest 100 videos which "can_considered"
3 years ago
Felix Stupp
0bbd7349a0
app filter timedelta: Rebuild to UI friendly filter
3 years ago
Felix Stupp
c7df6b9fce
stats.htm: Add stats for ignored / to watch videos
3 years ago
Felix Stupp
1f0751a89b
stats.htm: Add support for average length of videos
3 years ago
Felix Stupp
012aad4c86
stats.htm: Refracted template to remove duplicity
3 years ago
Felix Stupp
8ad896b75a
templates/media_list: Order title at end of table
3 years ago
Felix Stupp
03f2848283
templates: Extract media_entry and link_entry to macros
3 years ago
Felix Stupp
23834ad9e9
Add stats page
3 years ago
Felix Stupp
6312143abb
Refractor/Extend tag system and add auto recommendation algorithm
3 years ago
Felix Stupp
6330443876
Allow unextracted elements and collections to exists, add/use reflecting property
3 years ago
Felix Stupp
ad5a504263
extractors/collection/youtube: Normalize playlist titles as well
3 years ago
Felix Stupp
e9e5aef891
templates: Normalize media element buttons while adding editing buttons
3 years ago
Felix Stupp
4f4ac8ff7b
templates/collection_element: Add buttons to change collection properties
3 years ago
Felix Stupp
38381e0b1f
Add API endpoints for editing collections and media elements
3 years ago
Felix Stupp
5346a2f7a4
templates/macros: Add macro for single button post forms
3 years ago
Felix Stupp
8d6f6760b8
templates/media_element: Add release date to properties
3 years ago
Felix Stupp
55e68578f7
templates/collection_element: Add release_date to episode entries
3 years ago
Felix Stupp
9a264aec1b
templates/collection_element: Add id to episode entries
3 years ago
Felix Stupp
8ebed213bb
templates/collection_element: Spread property entries
3 years ago
Felix Stupp
af26e08b90
Disable special coloring on visited links
3 years ago
Felix Stupp
f7c907b5a2
templates/macros: expand CSS for links
3 years ago
Felix Stupp
1bca3104bd
Normalize auto-generated collection titles
3 years ago
Felix Stupp
d0b3795484
extractors/generic: Add Optional to load_* type hints
3 years ago
Felix Stupp
b19bfbb8a4
extractors/collection: Also configure newly created collection object
3 years ago
Felix Stupp
4adb0484f3
extractors/collection: Extract method __configure_collection
3 years ago
Felix Stupp
bc68e40ad7
extractors/media/base: Made 4 functions for author collections private
3 years ago
Felix Stupp
699708043c
extractors/collection/youtube: Assign better collection name for YT-channels
3 years ago
Felix Stupp
aafa99cbf7
extractor/collection/{tt_rss,youtube}: Fix extracting media uri's
3 years ago
Felix Stupp
37d24b0cee
Fix searching in extractor list instead of keys
3 years ago
Felix Stupp
2bba9d21b9
Added shared macros template with shared style
3 years ago
Felix Stupp
dedefbe4d6
server: only show not watched & not ignored elements in default media list
3 years ago
Felix Stupp
04fc620e1d
Added play buttons for invoking desktop-client
3 years ago
Felix Stupp
6f88153932
model: Added before_update handlers for auto uri linking
3 years ago
Felix Stupp
133ab9e612
models: Add headers to separate model categories
3 years ago
Felix Stupp
4c0b111620
models: Renamed _uris to uris
3 years ago
Felix Stupp
bdc9cd7f5c
extractors.all.ytdl.get_playlist_info: Add required args for youtube-dl
3 years ago
Felix Stupp
e41175f0fa
Extracted extractors.all.ytdl module
3 years ago
Felix Stupp
9340d4171a
Extracted extractors.all.tt_rss module
3 years ago
Felix Stupp
c01d522749
extractors: Added mechanic to update last_updated date
3 years ago
Felix Stupp
86520ae30e
Added search for suitable extractor automatically
3 years ago
Felix Stupp
beaf99e539
Remove extractor_cache and further usages of it
3 years ago
Felix Stupp
fe183d0411
models: Remove unused extractor_cache_valid methods
3 years ago
Felix Stupp
a39ad912b5
models: Renamed extractor_cache_date to last_updated for MediaCollection and MediaElement
3 years ago
Felix Stupp
83b88fb89e
Init flask / ponyorm server
3 years ago