diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index dfd264d..806b09b 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -4,7 +4,7 @@
-
+
@@ -151,7 +151,7 @@
-
+
@@ -164,7 +164,7 @@
-
+
@@ -175,8 +175,8 @@
-
-
+
+
@@ -186,9 +186,9 @@
-
+
-
+
@@ -198,8 +198,8 @@
-
-
+
+
@@ -208,10 +208,22 @@
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
@@ -334,10 +346,10 @@
-
-
+
+
@@ -626,20 +638,20 @@
-
+
-
+
-
+
-
+
@@ -682,22 +694,6 @@
-
-
-
-
- file://$PROJECT_DIR$/YtManagerApp/management/jobs/synchronize.py
- 31
-
-
-
- file://$PROJECT_DIR$/external/pytaw/pytaw/youtube.py
- 160
-
-
-
-
-
@@ -915,16 +911,6 @@
-
-
-
-
-
-
-
-
-
-
@@ -1006,16 +992,6 @@
-
-
-
-
-
-
-
-
-
-
@@ -1025,13 +1001,33 @@
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/YtManagerApp/management/jobs/synchronize.py b/YtManagerApp/management/jobs/synchronize.py
index ff289b6..f6db0d8 100644
--- a/YtManagerApp/management/jobs/synchronize.py
+++ b/YtManagerApp/management/jobs/synchronize.py
@@ -31,8 +31,12 @@ def __check_new_videos_sub(subscription: Subscription, yt_api: youtube.YoutubeAP
for yt_video in yt_api.videos(all_vids_ids, part='id,statistics'):
video = all_vids_dict.get(yt_video.id)
- if yt_video.like_count is not None and yt_video.dislike_count is not None:
+
+ if yt_video.n_likes is not None \
+ and yt_video.n_dislikes is not None \
+ and yt_video.n_likes + yt_video.n_dislikes > 0:
video.rating = yt_video.n_likes / (yt_video.n_likes + yt_video.n_dislikes)
+
video.views = yt_video.n_views
video.save()
diff --git a/readme.md b/readme.md
index 1b230ff..c0aef34 100644
--- a/readme.md
+++ b/readme.md
@@ -2,6 +2,24 @@
A self-hosted tool which manages your YouTube subscriptions, and downloads files automatically.
+## Current state
+
+Currently, the program will do what it's main job is to do: download videos, and keep track of the subscriptions.
+
+Of course, there are a lot of things that still need to be done. The web interface is still pretty limited.
+This is what still needs to be done:
+
+* get status bar to actually display something (right now it's just a hardcoded message)
+* add an indication of what the synchronization jobs are doing to the UI
+* video page, which contains an embedded player
+* OAuth YouTube authentication, so private playlists can be obtained
+* Web UI improvements:
+ * Paging for videos
+ * Handle drag & drop for the subscription folders
+ * Update UI when something changes
+* Improve stability
+* Bonus: Plex integration
+
## Dependencies
* python3: `$ apt install python3`