From ae772518831b434a7d2fbe319b758586c46db9cc Mon Sep 17 00:00:00 2001 From: Tiberiu Chibici Date: Thu, 11 Oct 2018 01:43:50 +0300 Subject: [PATCH] Big refactor --- .gitignore | 1 + .idea/jsLibraryMappings.xml | 6 + .idea/workspace.xml | 833 ++++++++---- .idea/youtube-channel-manager.iml | 3 + YtManager/settings.py | 21 +- YtManager/urls.py | 5 +- YtManagerApp/appconfig.py | 108 ++ YtManagerApp/appmain.py | 11 + YtManagerApp/apps.py | 8 +- YtManagerApp/management/__init__.py | 0 YtManagerApp/management/downloader.py | 110 ++ YtManagerApp/management/folders.py | 0 YtManagerApp/management/jobs/__init__.py | 0 .../management/jobs/download_video.py | 93 ++ YtManagerApp/management/jobs/synchronize.py | 46 + YtManagerApp/{ => management}/management.py | 102 +- YtManagerApp/management/subscriptions.py | 0 .../migrations/0007_auto_20181009_0209.py | 33 + YtManagerApp/models.py | 70 + YtManagerApp/scheduler.py | 20 + .../static/YtManagerApp/css/style.css | 23 + .../static/YtManagerApp/css/style.css.map | 2 +- .../static/YtManagerApp/css/style.scss | 42 + .../YtManagerApp/import/typicons/LICENCE.md | 92 ++ .../YtManagerApp/import/typicons/demo.html | 406 ++++++ .../YtManagerApp/import/typicons/typicons.css | 1040 +++++++++++++++ .../YtManagerApp/import/typicons/typicons.eot | Bin 0 -> 100204 bytes .../import/typicons/typicons.min.css | 1 + .../YtManagerApp/import/typicons/typicons.svg | 1180 +++++++++++++++++ .../YtManagerApp/import/typicons/typicons.ttf | Bin 0 -> 99920 bytes .../import/typicons/typicons.woff | Bin 0 -> 59872 bytes .../templates/YtManagerApp/index.html | 14 +- .../YtManagerApp/js/subscription_tree.js | 11 +- .../templates/YtManagerApp/main_default.html | 2 +- .../templates/YtManagerApp/main_videos.html | 38 + YtManagerApp/urls.py | 0 YtManagerApp/utils/__init__.py | 0 YtManagerApp/utils/customconfigparser.py | 114 ++ YtManagerApp/{ => utils}/youtube.py | 0 YtManagerApp/views.py | 18 +- config/config.ini | 61 + config/config.ini.default | 61 + 42 files changed, 4311 insertions(+), 264 deletions(-) create mode 100644 .idea/jsLibraryMappings.xml create mode 100644 YtManagerApp/appconfig.py create mode 100644 YtManagerApp/appmain.py create mode 100644 YtManagerApp/management/__init__.py create mode 100644 YtManagerApp/management/downloader.py create mode 100644 YtManagerApp/management/folders.py create mode 100644 YtManagerApp/management/jobs/__init__.py create mode 100644 YtManagerApp/management/jobs/download_video.py create mode 100644 YtManagerApp/management/jobs/synchronize.py rename YtManagerApp/{ => management}/management.py (64%) create mode 100644 YtManagerApp/management/subscriptions.py create mode 100644 YtManagerApp/migrations/0007_auto_20181009_0209.py create mode 100644 YtManagerApp/scheduler.py create mode 100644 YtManagerApp/static/YtManagerApp/import/typicons/LICENCE.md create mode 100644 YtManagerApp/static/YtManagerApp/import/typicons/demo.html create mode 100644 YtManagerApp/static/YtManagerApp/import/typicons/typicons.css create mode 100644 YtManagerApp/static/YtManagerApp/import/typicons/typicons.eot create mode 100644 YtManagerApp/static/YtManagerApp/import/typicons/typicons.min.css create mode 100644 YtManagerApp/static/YtManagerApp/import/typicons/typicons.svg create mode 100644 YtManagerApp/static/YtManagerApp/import/typicons/typicons.ttf create mode 100644 YtManagerApp/static/YtManagerApp/import/typicons/typicons.woff create mode 100644 YtManagerApp/templates/YtManagerApp/main_videos.html create mode 100644 YtManagerApp/urls.py create mode 100644 YtManagerApp/utils/__init__.py create mode 100644 YtManagerApp/utils/customconfigparser.py rename YtManagerApp/{ => utils}/youtube.py (100%) create mode 100644 config/config.ini create mode 100644 config/config.ini.default diff --git a/.gitignore b/.gitignore index 3eaebba..8a6f7c5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ .vs .vscode +temp/ # Byte-compiled / optimized / DLL files __pycache__/ diff --git a/.idea/jsLibraryMappings.xml b/.idea/jsLibraryMappings.xml new file mode 100644 index 0000000..7c3581c --- /dev/null +++ b/.idea/jsLibraryMappings.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 8cff17d..5fa7757 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,22 +2,39 @@ - - - - + + + + + + + + + + + + + + + + + + + - - + - - + + + + + + + + + - + - - + + - + - + @@ -140,40 +172,38 @@ - - - - - - - - - - - + + - - - - - - - + - - + + + + + + + + + + - + - - + + + + + + + @@ -183,61 +213,35 @@ - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - - - + + + + - - - - - - + + + + + + + - + - - + + @@ -250,8 +254,9 @@ @@ -270,6 +275,15 @@ treeNode_Edit default_app_config start_synchronization_timer + thumbnailUrl + __fetch_thumbnail + $.post + material-folder + material-icons + = + _resolve_section_option + ExtendedInterpolatorWithEnv + ConfigParserWithEnv loading @@ -277,6 +291,7 @@ subscription subscriptionEditDialog folderEditDialog + = @@ -287,23 +302,41 @@ @@ -314,9 +347,57 @@ DEFINITION_ORDER - + + + + + + + CSS + + + Code style issuesCSS + + + Control flow issuesJavaScript + + + DOM issuesJavaScript + + + General + + + GeneralJavaScript + + + Invalid elementsCSS + + + JavaScript + + + Probable bugsCSS + + + Python + + + ReST + + + SQL + + + YAML + + + + @@ -330,6 +411,11 @@ + + + + + @@ -340,6 +426,18 @@ + + + + + + + + + + + +