diff --git a/.gitignore b/.gitignore index 69b3bfe3..0a7d9bb7 100644 --- a/.gitignore +++ b/.gitignore @@ -60,9 +60,9 @@ coverage.xml local_settings.py db.sqlite3 db.sqlite3-journal -/app/static/ -/app/media/ -/app/downloads/ +/tubesync/static/ +/tubesync/media/ +/tubesync/downloads/ # Flask stuff: instance/ diff --git a/Dockerfile b/Dockerfile index 775e13c8..8ffac3fb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -29,8 +29,8 @@ ARG default_uid="10000" ARG default_gid="10000" # Copy app -COPY app /app -COPY app/tubesync/local_settings.py.container /app/tubesync/local_settings.py +COPY tubesync /app +COPY tubesync/tubesync/local_settings.py.container /app/tubesync/local_settings.py # Append container bundled software versions RUN echo "ffmpeg_version = '${FFMPEG_VERSION}-static'" >> /app/common/third_party_versions.py diff --git a/app/common/__init__.py b/tubesync/common/__init__.py similarity index 100% rename from app/common/__init__.py rename to tubesync/common/__init__.py diff --git a/app/common/admin.py b/tubesync/common/admin.py similarity index 100% rename from app/common/admin.py rename to tubesync/common/admin.py diff --git a/app/common/apps.py b/tubesync/common/apps.py similarity index 100% rename from app/common/apps.py rename to tubesync/common/apps.py diff --git a/app/common/context_processors.py b/tubesync/common/context_processors.py similarity index 100% rename from app/common/context_processors.py rename to tubesync/common/context_processors.py diff --git a/app/common/errors.py b/tubesync/common/errors.py similarity index 100% rename from app/common/errors.py rename to tubesync/common/errors.py diff --git a/app/common/logger.py b/tubesync/common/logger.py similarity index 100% rename from app/common/logger.py rename to tubesync/common/logger.py diff --git a/app/common/middleware.py b/tubesync/common/middleware.py similarity index 100% rename from app/common/middleware.py rename to tubesync/common/middleware.py diff --git a/app/common/migrations/__init__.py b/tubesync/common/migrations/__init__.py similarity index 100% rename from app/common/migrations/__init__.py rename to tubesync/common/migrations/__init__.py diff --git a/app/common/models.py b/tubesync/common/models.py similarity index 100% rename from app/common/models.py rename to tubesync/common/models.py diff --git a/app/common/static/fonts/fontawesome/fa-brands-400.eot b/tubesync/common/static/fonts/fontawesome/fa-brands-400.eot similarity index 100% rename from app/common/static/fonts/fontawesome/fa-brands-400.eot rename to tubesync/common/static/fonts/fontawesome/fa-brands-400.eot diff --git a/app/common/static/fonts/fontawesome/fa-brands-400.svg b/tubesync/common/static/fonts/fontawesome/fa-brands-400.svg similarity index 100% rename from app/common/static/fonts/fontawesome/fa-brands-400.svg rename to tubesync/common/static/fonts/fontawesome/fa-brands-400.svg diff --git a/app/common/static/fonts/fontawesome/fa-brands-400.ttf b/tubesync/common/static/fonts/fontawesome/fa-brands-400.ttf similarity index 100% rename from app/common/static/fonts/fontawesome/fa-brands-400.ttf rename to tubesync/common/static/fonts/fontawesome/fa-brands-400.ttf diff --git a/app/common/static/fonts/fontawesome/fa-brands-400.woff b/tubesync/common/static/fonts/fontawesome/fa-brands-400.woff similarity index 100% rename from app/common/static/fonts/fontawesome/fa-brands-400.woff rename to tubesync/common/static/fonts/fontawesome/fa-brands-400.woff diff --git a/app/common/static/fonts/fontawesome/fa-brands-400.woff2 b/tubesync/common/static/fonts/fontawesome/fa-brands-400.woff2 similarity index 100% rename from app/common/static/fonts/fontawesome/fa-brands-400.woff2 rename to tubesync/common/static/fonts/fontawesome/fa-brands-400.woff2 diff --git a/app/common/static/fonts/fontawesome/fa-regular-400.eot b/tubesync/common/static/fonts/fontawesome/fa-regular-400.eot similarity index 100% rename from app/common/static/fonts/fontawesome/fa-regular-400.eot rename to tubesync/common/static/fonts/fontawesome/fa-regular-400.eot diff --git a/app/common/static/fonts/fontawesome/fa-regular-400.svg b/tubesync/common/static/fonts/fontawesome/fa-regular-400.svg similarity index 100% rename from app/common/static/fonts/fontawesome/fa-regular-400.svg rename to tubesync/common/static/fonts/fontawesome/fa-regular-400.svg diff --git a/app/common/static/fonts/fontawesome/fa-regular-400.ttf b/tubesync/common/static/fonts/fontawesome/fa-regular-400.ttf similarity index 100% rename from app/common/static/fonts/fontawesome/fa-regular-400.ttf rename to tubesync/common/static/fonts/fontawesome/fa-regular-400.ttf diff --git a/app/common/static/fonts/fontawesome/fa-regular-400.woff b/tubesync/common/static/fonts/fontawesome/fa-regular-400.woff similarity index 100% rename from app/common/static/fonts/fontawesome/fa-regular-400.woff rename to tubesync/common/static/fonts/fontawesome/fa-regular-400.woff diff --git a/app/common/static/fonts/fontawesome/fa-regular-400.woff2 b/tubesync/common/static/fonts/fontawesome/fa-regular-400.woff2 similarity index 100% rename from app/common/static/fonts/fontawesome/fa-regular-400.woff2 rename to tubesync/common/static/fonts/fontawesome/fa-regular-400.woff2 diff --git a/app/common/static/fonts/fontawesome/fa-solid-900.eot b/tubesync/common/static/fonts/fontawesome/fa-solid-900.eot similarity index 100% rename from app/common/static/fonts/fontawesome/fa-solid-900.eot rename to tubesync/common/static/fonts/fontawesome/fa-solid-900.eot diff --git a/app/common/static/fonts/fontawesome/fa-solid-900.svg b/tubesync/common/static/fonts/fontawesome/fa-solid-900.svg similarity index 100% rename from app/common/static/fonts/fontawesome/fa-solid-900.svg rename to tubesync/common/static/fonts/fontawesome/fa-solid-900.svg diff --git a/app/common/static/fonts/fontawesome/fa-solid-900.ttf b/tubesync/common/static/fonts/fontawesome/fa-solid-900.ttf similarity index 100% rename from app/common/static/fonts/fontawesome/fa-solid-900.ttf rename to tubesync/common/static/fonts/fontawesome/fa-solid-900.ttf diff --git a/app/common/static/fonts/fontawesome/fa-solid-900.woff b/tubesync/common/static/fonts/fontawesome/fa-solid-900.woff similarity index 100% rename from app/common/static/fonts/fontawesome/fa-solid-900.woff rename to tubesync/common/static/fonts/fontawesome/fa-solid-900.woff diff --git a/app/common/static/fonts/fontawesome/fa-solid-900.woff2 b/tubesync/common/static/fonts/fontawesome/fa-solid-900.woff2 similarity index 100% rename from app/common/static/fonts/fontawesome/fa-solid-900.woff2 rename to tubesync/common/static/fonts/fontawesome/fa-solid-900.woff2 diff --git a/app/common/static/fonts/roboto/roboto-bold.woff b/tubesync/common/static/fonts/roboto/roboto-bold.woff similarity index 100% rename from app/common/static/fonts/roboto/roboto-bold.woff rename to tubesync/common/static/fonts/roboto/roboto-bold.woff diff --git a/app/common/static/fonts/roboto/roboto-light.woff b/tubesync/common/static/fonts/roboto/roboto-light.woff similarity index 100% rename from app/common/static/fonts/roboto/roboto-light.woff rename to tubesync/common/static/fonts/roboto/roboto-light.woff diff --git a/app/common/static/fonts/roboto/roboto-regular.woff b/tubesync/common/static/fonts/roboto/roboto-regular.woff similarity index 100% rename from app/common/static/fonts/roboto/roboto-regular.woff rename to tubesync/common/static/fonts/roboto/roboto-regular.woff diff --git a/app/common/static/images/favicon.ico b/tubesync/common/static/images/favicon.ico similarity index 100% rename from app/common/static/images/favicon.ico rename to tubesync/common/static/images/favicon.ico diff --git a/app/common/static/images/nothumb.png b/tubesync/common/static/images/nothumb.png similarity index 100% rename from app/common/static/images/nothumb.png rename to tubesync/common/static/images/nothumb.png diff --git a/app/common/static/styles/_colours.scss b/tubesync/common/static/styles/_colours.scss similarity index 100% rename from app/common/static/styles/_colours.scss rename to tubesync/common/static/styles/_colours.scss diff --git a/app/common/static/styles/_fonts.scss b/tubesync/common/static/styles/_fonts.scss similarity index 100% rename from app/common/static/styles/_fonts.scss rename to tubesync/common/static/styles/_fonts.scss diff --git a/app/common/static/styles/_forms.scss b/tubesync/common/static/styles/_forms.scss similarity index 100% rename from app/common/static/styles/_forms.scss rename to tubesync/common/static/styles/_forms.scss diff --git a/app/common/static/styles/_helpers.scss b/tubesync/common/static/styles/_helpers.scss similarity index 100% rename from app/common/static/styles/_helpers.scss rename to tubesync/common/static/styles/_helpers.scss diff --git a/app/common/static/styles/_template.scss b/tubesync/common/static/styles/_template.scss similarity index 100% rename from app/common/static/styles/_template.scss rename to tubesync/common/static/styles/_template.scss diff --git a/app/common/static/styles/_variables.scss b/tubesync/common/static/styles/_variables.scss similarity index 100% rename from app/common/static/styles/_variables.scss rename to tubesync/common/static/styles/_variables.scss diff --git a/app/common/static/styles/fontawesome/_animated.scss b/tubesync/common/static/styles/fontawesome/_animated.scss similarity index 100% rename from app/common/static/styles/fontawesome/_animated.scss rename to tubesync/common/static/styles/fontawesome/_animated.scss diff --git a/app/common/static/styles/fontawesome/_bordered-pulled.scss b/tubesync/common/static/styles/fontawesome/_bordered-pulled.scss similarity index 100% rename from app/common/static/styles/fontawesome/_bordered-pulled.scss rename to tubesync/common/static/styles/fontawesome/_bordered-pulled.scss diff --git a/app/common/static/styles/fontawesome/_core.scss b/tubesync/common/static/styles/fontawesome/_core.scss similarity index 100% rename from app/common/static/styles/fontawesome/_core.scss rename to tubesync/common/static/styles/fontawesome/_core.scss diff --git a/app/common/static/styles/fontawesome/_fixed-width.scss b/tubesync/common/static/styles/fontawesome/_fixed-width.scss similarity index 100% rename from app/common/static/styles/fontawesome/_fixed-width.scss rename to tubesync/common/static/styles/fontawesome/_fixed-width.scss diff --git a/app/common/static/styles/fontawesome/_icons.scss b/tubesync/common/static/styles/fontawesome/_icons.scss similarity index 100% rename from app/common/static/styles/fontawesome/_icons.scss rename to tubesync/common/static/styles/fontawesome/_icons.scss diff --git a/app/common/static/styles/fontawesome/_larger.scss b/tubesync/common/static/styles/fontawesome/_larger.scss similarity index 100% rename from app/common/static/styles/fontawesome/_larger.scss rename to tubesync/common/static/styles/fontawesome/_larger.scss diff --git a/app/common/static/styles/fontawesome/_list.scss b/tubesync/common/static/styles/fontawesome/_list.scss similarity index 100% rename from app/common/static/styles/fontawesome/_list.scss rename to tubesync/common/static/styles/fontawesome/_list.scss diff --git a/app/common/static/styles/fontawesome/_mixins.scss b/tubesync/common/static/styles/fontawesome/_mixins.scss similarity index 100% rename from app/common/static/styles/fontawesome/_mixins.scss rename to tubesync/common/static/styles/fontawesome/_mixins.scss diff --git a/app/common/static/styles/fontawesome/_rotated-flipped.scss b/tubesync/common/static/styles/fontawesome/_rotated-flipped.scss similarity index 100% rename from app/common/static/styles/fontawesome/_rotated-flipped.scss rename to tubesync/common/static/styles/fontawesome/_rotated-flipped.scss diff --git a/app/common/static/styles/fontawesome/_screen-reader.scss b/tubesync/common/static/styles/fontawesome/_screen-reader.scss similarity index 100% rename from app/common/static/styles/fontawesome/_screen-reader.scss rename to tubesync/common/static/styles/fontawesome/_screen-reader.scss diff --git a/app/common/static/styles/fontawesome/_shims.scss b/tubesync/common/static/styles/fontawesome/_shims.scss similarity index 100% rename from app/common/static/styles/fontawesome/_shims.scss rename to tubesync/common/static/styles/fontawesome/_shims.scss diff --git a/app/common/static/styles/fontawesome/_stacked.scss b/tubesync/common/static/styles/fontawesome/_stacked.scss similarity index 100% rename from app/common/static/styles/fontawesome/_stacked.scss rename to tubesync/common/static/styles/fontawesome/_stacked.scss diff --git a/app/common/static/styles/fontawesome/_variables.scss b/tubesync/common/static/styles/fontawesome/_variables.scss similarity index 100% rename from app/common/static/styles/fontawesome/_variables.scss rename to tubesync/common/static/styles/fontawesome/_variables.scss diff --git a/app/common/static/styles/fontawesome/brands.scss b/tubesync/common/static/styles/fontawesome/brands.scss similarity index 100% rename from app/common/static/styles/fontawesome/brands.scss rename to tubesync/common/static/styles/fontawesome/brands.scss diff --git a/app/common/static/styles/fontawesome/fontawesome.scss b/tubesync/common/static/styles/fontawesome/fontawesome.scss similarity index 100% rename from app/common/static/styles/fontawesome/fontawesome.scss rename to tubesync/common/static/styles/fontawesome/fontawesome.scss diff --git a/app/common/static/styles/fontawesome/regular.scss b/tubesync/common/static/styles/fontawesome/regular.scss similarity index 100% rename from app/common/static/styles/fontawesome/regular.scss rename to tubesync/common/static/styles/fontawesome/regular.scss diff --git a/app/common/static/styles/fontawesome/solid.scss b/tubesync/common/static/styles/fontawesome/solid.scss similarity index 100% rename from app/common/static/styles/fontawesome/solid.scss rename to tubesync/common/static/styles/fontawesome/solid.scss diff --git a/app/common/static/styles/fontawesome/v4-shims.scss b/tubesync/common/static/styles/fontawesome/v4-shims.scss similarity index 100% rename from app/common/static/styles/fontawesome/v4-shims.scss rename to tubesync/common/static/styles/fontawesome/v4-shims.scss diff --git a/app/common/static/styles/materializecss/components/_badges.scss b/tubesync/common/static/styles/materializecss/components/_badges.scss similarity index 100% rename from app/common/static/styles/materializecss/components/_badges.scss rename to tubesync/common/static/styles/materializecss/components/_badges.scss diff --git a/app/common/static/styles/materializecss/components/_buttons.scss b/tubesync/common/static/styles/materializecss/components/_buttons.scss similarity index 100% rename from app/common/static/styles/materializecss/components/_buttons.scss rename to tubesync/common/static/styles/materializecss/components/_buttons.scss diff --git a/app/common/static/styles/materializecss/components/_cards.scss b/tubesync/common/static/styles/materializecss/components/_cards.scss similarity index 100% rename from app/common/static/styles/materializecss/components/_cards.scss rename to tubesync/common/static/styles/materializecss/components/_cards.scss diff --git a/app/common/static/styles/materializecss/components/_carousel.scss b/tubesync/common/static/styles/materializecss/components/_carousel.scss similarity index 100% rename from app/common/static/styles/materializecss/components/_carousel.scss rename to tubesync/common/static/styles/materializecss/components/_carousel.scss diff --git a/app/common/static/styles/materializecss/components/_chips.scss b/tubesync/common/static/styles/materializecss/components/_chips.scss similarity index 100% rename from app/common/static/styles/materializecss/components/_chips.scss rename to tubesync/common/static/styles/materializecss/components/_chips.scss diff --git a/app/common/static/styles/materializecss/components/_collapsible.scss b/tubesync/common/static/styles/materializecss/components/_collapsible.scss similarity index 100% rename from app/common/static/styles/materializecss/components/_collapsible.scss rename to tubesync/common/static/styles/materializecss/components/_collapsible.scss diff --git a/app/common/static/styles/materializecss/components/_color-classes.scss b/tubesync/common/static/styles/materializecss/components/_color-classes.scss similarity index 100% rename from app/common/static/styles/materializecss/components/_color-classes.scss rename to tubesync/common/static/styles/materializecss/components/_color-classes.scss diff --git a/app/common/static/styles/materializecss/components/_color-variables.scss b/tubesync/common/static/styles/materializecss/components/_color-variables.scss similarity index 100% rename from app/common/static/styles/materializecss/components/_color-variables.scss rename to tubesync/common/static/styles/materializecss/components/_color-variables.scss diff --git a/app/common/static/styles/materializecss/components/_datepicker.scss b/tubesync/common/static/styles/materializecss/components/_datepicker.scss similarity index 100% rename from app/common/static/styles/materializecss/components/_datepicker.scss rename to tubesync/common/static/styles/materializecss/components/_datepicker.scss diff --git a/app/common/static/styles/materializecss/components/_dropdown.scss b/tubesync/common/static/styles/materializecss/components/_dropdown.scss similarity index 100% rename from app/common/static/styles/materializecss/components/_dropdown.scss rename to tubesync/common/static/styles/materializecss/components/_dropdown.scss diff --git a/app/common/static/styles/materializecss/components/_global.scss b/tubesync/common/static/styles/materializecss/components/_global.scss similarity index 100% rename from app/common/static/styles/materializecss/components/_global.scss rename to tubesync/common/static/styles/materializecss/components/_global.scss diff --git a/app/common/static/styles/materializecss/components/_grid.scss b/tubesync/common/static/styles/materializecss/components/_grid.scss similarity index 100% rename from app/common/static/styles/materializecss/components/_grid.scss rename to tubesync/common/static/styles/materializecss/components/_grid.scss diff --git a/app/common/static/styles/materializecss/components/_icons-material-design.scss b/tubesync/common/static/styles/materializecss/components/_icons-material-design.scss similarity index 100% rename from app/common/static/styles/materializecss/components/_icons-material-design.scss rename to tubesync/common/static/styles/materializecss/components/_icons-material-design.scss diff --git a/app/common/static/styles/materializecss/components/_materialbox.scss b/tubesync/common/static/styles/materializecss/components/_materialbox.scss similarity index 100% rename from app/common/static/styles/materializecss/components/_materialbox.scss rename to tubesync/common/static/styles/materializecss/components/_materialbox.scss diff --git a/app/common/static/styles/materializecss/components/_modal.scss b/tubesync/common/static/styles/materializecss/components/_modal.scss similarity index 100% rename from app/common/static/styles/materializecss/components/_modal.scss rename to tubesync/common/static/styles/materializecss/components/_modal.scss diff --git a/app/common/static/styles/materializecss/components/_navbar.scss b/tubesync/common/static/styles/materializecss/components/_navbar.scss similarity index 100% rename from app/common/static/styles/materializecss/components/_navbar.scss rename to tubesync/common/static/styles/materializecss/components/_navbar.scss diff --git a/app/common/static/styles/materializecss/components/_normalize.scss b/tubesync/common/static/styles/materializecss/components/_normalize.scss similarity index 100% rename from app/common/static/styles/materializecss/components/_normalize.scss rename to tubesync/common/static/styles/materializecss/components/_normalize.scss diff --git a/app/common/static/styles/materializecss/components/_preloader.scss b/tubesync/common/static/styles/materializecss/components/_preloader.scss similarity index 100% rename from app/common/static/styles/materializecss/components/_preloader.scss rename to tubesync/common/static/styles/materializecss/components/_preloader.scss diff --git a/app/common/static/styles/materializecss/components/_pulse.scss b/tubesync/common/static/styles/materializecss/components/_pulse.scss similarity index 100% rename from app/common/static/styles/materializecss/components/_pulse.scss rename to tubesync/common/static/styles/materializecss/components/_pulse.scss diff --git a/app/common/static/styles/materializecss/components/_sidenav.scss b/tubesync/common/static/styles/materializecss/components/_sidenav.scss similarity index 100% rename from app/common/static/styles/materializecss/components/_sidenav.scss rename to tubesync/common/static/styles/materializecss/components/_sidenav.scss diff --git a/app/common/static/styles/materializecss/components/_slider.scss b/tubesync/common/static/styles/materializecss/components/_slider.scss similarity index 100% rename from app/common/static/styles/materializecss/components/_slider.scss rename to tubesync/common/static/styles/materializecss/components/_slider.scss diff --git a/app/common/static/styles/materializecss/components/_table_of_contents.scss b/tubesync/common/static/styles/materializecss/components/_table_of_contents.scss similarity index 100% rename from app/common/static/styles/materializecss/components/_table_of_contents.scss rename to tubesync/common/static/styles/materializecss/components/_table_of_contents.scss diff --git a/app/common/static/styles/materializecss/components/_tabs.scss b/tubesync/common/static/styles/materializecss/components/_tabs.scss similarity index 100% rename from app/common/static/styles/materializecss/components/_tabs.scss rename to tubesync/common/static/styles/materializecss/components/_tabs.scss diff --git a/app/common/static/styles/materializecss/components/_tapTarget.scss b/tubesync/common/static/styles/materializecss/components/_tapTarget.scss similarity index 100% rename from app/common/static/styles/materializecss/components/_tapTarget.scss rename to tubesync/common/static/styles/materializecss/components/_tapTarget.scss diff --git a/app/common/static/styles/materializecss/components/_timepicker.scss b/tubesync/common/static/styles/materializecss/components/_timepicker.scss similarity index 100% rename from app/common/static/styles/materializecss/components/_timepicker.scss rename to tubesync/common/static/styles/materializecss/components/_timepicker.scss diff --git a/app/common/static/styles/materializecss/components/_toast.scss b/tubesync/common/static/styles/materializecss/components/_toast.scss similarity index 100% rename from app/common/static/styles/materializecss/components/_toast.scss rename to tubesync/common/static/styles/materializecss/components/_toast.scss diff --git a/app/common/static/styles/materializecss/components/_tooltip.scss b/tubesync/common/static/styles/materializecss/components/_tooltip.scss similarity index 100% rename from app/common/static/styles/materializecss/components/_tooltip.scss rename to tubesync/common/static/styles/materializecss/components/_tooltip.scss diff --git a/app/common/static/styles/materializecss/components/_transitions.scss b/tubesync/common/static/styles/materializecss/components/_transitions.scss similarity index 100% rename from app/common/static/styles/materializecss/components/_transitions.scss rename to tubesync/common/static/styles/materializecss/components/_transitions.scss diff --git a/app/common/static/styles/materializecss/components/_typography.scss b/tubesync/common/static/styles/materializecss/components/_typography.scss similarity index 100% rename from app/common/static/styles/materializecss/components/_typography.scss rename to tubesync/common/static/styles/materializecss/components/_typography.scss diff --git a/app/common/static/styles/materializecss/components/_variables.scss b/tubesync/common/static/styles/materializecss/components/_variables.scss similarity index 100% rename from app/common/static/styles/materializecss/components/_variables.scss rename to tubesync/common/static/styles/materializecss/components/_variables.scss diff --git a/app/common/static/styles/materializecss/components/_waves.scss b/tubesync/common/static/styles/materializecss/components/_waves.scss similarity index 100% rename from app/common/static/styles/materializecss/components/_waves.scss rename to tubesync/common/static/styles/materializecss/components/_waves.scss diff --git a/app/common/static/styles/materializecss/components/forms/_checkboxes.scss b/tubesync/common/static/styles/materializecss/components/forms/_checkboxes.scss similarity index 100% rename from app/common/static/styles/materializecss/components/forms/_checkboxes.scss rename to tubesync/common/static/styles/materializecss/components/forms/_checkboxes.scss diff --git a/app/common/static/styles/materializecss/components/forms/_file-input.scss b/tubesync/common/static/styles/materializecss/components/forms/_file-input.scss similarity index 100% rename from app/common/static/styles/materializecss/components/forms/_file-input.scss rename to tubesync/common/static/styles/materializecss/components/forms/_file-input.scss diff --git a/app/common/static/styles/materializecss/components/forms/_forms.scss b/tubesync/common/static/styles/materializecss/components/forms/_forms.scss similarity index 100% rename from app/common/static/styles/materializecss/components/forms/_forms.scss rename to tubesync/common/static/styles/materializecss/components/forms/_forms.scss diff --git a/app/common/static/styles/materializecss/components/forms/_input-fields.scss b/tubesync/common/static/styles/materializecss/components/forms/_input-fields.scss similarity index 100% rename from app/common/static/styles/materializecss/components/forms/_input-fields.scss rename to tubesync/common/static/styles/materializecss/components/forms/_input-fields.scss diff --git a/app/common/static/styles/materializecss/components/forms/_radio-buttons.scss b/tubesync/common/static/styles/materializecss/components/forms/_radio-buttons.scss similarity index 100% rename from app/common/static/styles/materializecss/components/forms/_radio-buttons.scss rename to tubesync/common/static/styles/materializecss/components/forms/_radio-buttons.scss diff --git a/app/common/static/styles/materializecss/components/forms/_range.scss b/tubesync/common/static/styles/materializecss/components/forms/_range.scss similarity index 100% rename from app/common/static/styles/materializecss/components/forms/_range.scss rename to tubesync/common/static/styles/materializecss/components/forms/_range.scss diff --git a/app/common/static/styles/materializecss/components/forms/_select.scss b/tubesync/common/static/styles/materializecss/components/forms/_select.scss similarity index 100% rename from app/common/static/styles/materializecss/components/forms/_select.scss rename to tubesync/common/static/styles/materializecss/components/forms/_select.scss diff --git a/app/common/static/styles/materializecss/components/forms/_switches.scss b/tubesync/common/static/styles/materializecss/components/forms/_switches.scss similarity index 100% rename from app/common/static/styles/materializecss/components/forms/_switches.scss rename to tubesync/common/static/styles/materializecss/components/forms/_switches.scss diff --git a/app/common/static/styles/materializecss/materialize.scss b/tubesync/common/static/styles/materializecss/materialize.scss similarity index 100% rename from app/common/static/styles/materializecss/materialize.scss rename to tubesync/common/static/styles/materializecss/materialize.scss diff --git a/app/common/static/styles/tubesync.scss b/tubesync/common/static/styles/tubesync.scss similarity index 100% rename from app/common/static/styles/tubesync.scss rename to tubesync/common/static/styles/tubesync.scss diff --git a/app/common/templates/base.html b/tubesync/common/templates/base.html similarity index 100% rename from app/common/templates/base.html rename to tubesync/common/templates/base.html diff --git a/app/common/templates/error403.html b/tubesync/common/templates/error403.html similarity index 100% rename from app/common/templates/error403.html rename to tubesync/common/templates/error403.html diff --git a/app/common/templates/error404.html b/tubesync/common/templates/error404.html similarity index 100% rename from app/common/templates/error404.html rename to tubesync/common/templates/error404.html diff --git a/app/common/templates/error500.html b/tubesync/common/templates/error500.html similarity index 100% rename from app/common/templates/error500.html rename to tubesync/common/templates/error500.html diff --git a/app/common/templates/errorbox.html b/tubesync/common/templates/errorbox.html similarity index 100% rename from app/common/templates/errorbox.html rename to tubesync/common/templates/errorbox.html diff --git a/app/common/templates/infobox.html b/tubesync/common/templates/infobox.html similarity index 100% rename from app/common/templates/infobox.html rename to tubesync/common/templates/infobox.html diff --git a/app/common/templates/pagination.html b/tubesync/common/templates/pagination.html similarity index 100% rename from app/common/templates/pagination.html rename to tubesync/common/templates/pagination.html diff --git a/app/common/templates/simpleform.html b/tubesync/common/templates/simpleform.html similarity index 100% rename from app/common/templates/simpleform.html rename to tubesync/common/templates/simpleform.html diff --git a/app/common/templates/tubesync.svg b/tubesync/common/templates/tubesync.svg similarity index 100% rename from app/common/templates/tubesync.svg rename to tubesync/common/templates/tubesync.svg diff --git a/app/common/tests.py b/tubesync/common/tests.py similarity index 100% rename from app/common/tests.py rename to tubesync/common/tests.py diff --git a/app/common/testutils.py b/tubesync/common/testutils.py similarity index 100% rename from app/common/testutils.py rename to tubesync/common/testutils.py diff --git a/app/common/third_party_versions.py b/tubesync/common/third_party_versions.py similarity index 100% rename from app/common/third_party_versions.py rename to tubesync/common/third_party_versions.py diff --git a/app/common/urls.py b/tubesync/common/urls.py similarity index 100% rename from app/common/urls.py rename to tubesync/common/urls.py diff --git a/app/common/utils.py b/tubesync/common/utils.py similarity index 100% rename from app/common/utils.py rename to tubesync/common/utils.py diff --git a/app/common/views.py b/tubesync/common/views.py similarity index 100% rename from app/common/views.py rename to tubesync/common/views.py diff --git a/app/entrypoint.sh b/tubesync/entrypoint.sh similarity index 100% rename from app/entrypoint.sh rename to tubesync/entrypoint.sh diff --git a/app/manage.py b/tubesync/manage.py similarity index 100% rename from app/manage.py rename to tubesync/manage.py diff --git a/app/styles/tubesync.css b/tubesync/styles/tubesync.css similarity index 100% rename from app/styles/tubesync.css rename to tubesync/styles/tubesync.css diff --git a/app/styles/tubesync.css.map b/tubesync/styles/tubesync.css.map similarity index 100% rename from app/styles/tubesync.css.map rename to tubesync/styles/tubesync.css.map diff --git a/app/sync/__init__.py b/tubesync/sync/__init__.py similarity index 100% rename from app/sync/__init__.py rename to tubesync/sync/__init__.py diff --git a/app/sync/admin.py b/tubesync/sync/admin.py similarity index 100% rename from app/sync/admin.py rename to tubesync/sync/admin.py diff --git a/app/sync/apps.py b/tubesync/sync/apps.py similarity index 100% rename from app/sync/apps.py rename to tubesync/sync/apps.py diff --git a/app/sync/forms.py b/tubesync/sync/forms.py similarity index 100% rename from app/sync/forms.py rename to tubesync/sync/forms.py diff --git a/app/sync/matching.py b/tubesync/sync/matching.py similarity index 100% rename from app/sync/matching.py rename to tubesync/sync/matching.py diff --git a/app/sync/migrations/0001_initial.py b/tubesync/sync/migrations/0001_initial.py similarity index 100% rename from app/sync/migrations/0001_initial.py rename to tubesync/sync/migrations/0001_initial.py diff --git a/app/sync/migrations/0002_auto_20201126_0504.py b/tubesync/sync/migrations/0002_auto_20201126_0504.py similarity index 100% rename from app/sync/migrations/0002_auto_20201126_0504.py rename to tubesync/sync/migrations/0002_auto_20201126_0504.py diff --git a/app/sync/migrations/0003_auto_20201127_0838.py b/tubesync/sync/migrations/0003_auto_20201127_0838.py similarity index 100% rename from app/sync/migrations/0003_auto_20201127_0838.py rename to tubesync/sync/migrations/0003_auto_20201127_0838.py diff --git a/app/sync/migrations/0004_remove_source_url.py b/tubesync/sync/migrations/0004_remove_source_url.py similarity index 100% rename from app/sync/migrations/0004_remove_source_url.py rename to tubesync/sync/migrations/0004_remove_source_url.py diff --git a/app/sync/migrations/0005_auto_20201205_0411.py b/tubesync/sync/migrations/0005_auto_20201205_0411.py similarity index 100% rename from app/sync/migrations/0005_auto_20201205_0411.py rename to tubesync/sync/migrations/0005_auto_20201205_0411.py diff --git a/app/sync/migrations/0006_auto_20201205_0502.py b/tubesync/sync/migrations/0006_auto_20201205_0502.py similarity index 100% rename from app/sync/migrations/0006_auto_20201205_0502.py rename to tubesync/sync/migrations/0006_auto_20201205_0502.py diff --git a/app/sync/migrations/0007_auto_20201205_0509.py b/tubesync/sync/migrations/0007_auto_20201205_0509.py similarity index 100% rename from app/sync/migrations/0007_auto_20201205_0509.py rename to tubesync/sync/migrations/0007_auto_20201205_0509.py diff --git a/app/sync/migrations/0008_auto_20201205_0512.py b/tubesync/sync/migrations/0008_auto_20201205_0512.py similarity index 100% rename from app/sync/migrations/0008_auto_20201205_0512.py rename to tubesync/sync/migrations/0008_auto_20201205_0512.py diff --git a/app/sync/migrations/0009_auto_20201205_0512.py b/tubesync/sync/migrations/0009_auto_20201205_0512.py similarity index 100% rename from app/sync/migrations/0009_auto_20201205_0512.py rename to tubesync/sync/migrations/0009_auto_20201205_0512.py diff --git a/app/sync/migrations/0010_auto_20201206_0159.py b/tubesync/sync/migrations/0010_auto_20201206_0159.py similarity index 100% rename from app/sync/migrations/0010_auto_20201206_0159.py rename to tubesync/sync/migrations/0010_auto_20201206_0159.py diff --git a/app/sync/migrations/0011_auto_20201206_0911.py b/tubesync/sync/migrations/0011_auto_20201206_0911.py similarity index 100% rename from app/sync/migrations/0011_auto_20201206_0911.py rename to tubesync/sync/migrations/0011_auto_20201206_0911.py diff --git a/app/sync/migrations/0012_auto_20201207_0415.py b/tubesync/sync/migrations/0012_auto_20201207_0415.py similarity index 100% rename from app/sync/migrations/0012_auto_20201207_0415.py rename to tubesync/sync/migrations/0012_auto_20201207_0415.py diff --git a/app/sync/migrations/0013_auto_20201207_0439.py b/tubesync/sync/migrations/0013_auto_20201207_0439.py similarity index 100% rename from app/sync/migrations/0013_auto_20201207_0439.py rename to tubesync/sync/migrations/0013_auto_20201207_0439.py diff --git a/app/sync/migrations/0014_source_has_errors.py b/tubesync/sync/migrations/0014_source_has_errors.py similarity index 100% rename from app/sync/migrations/0014_source_has_errors.py rename to tubesync/sync/migrations/0014_source_has_errors.py diff --git a/app/sync/migrations/0015_auto_20201207_0744.py b/tubesync/sync/migrations/0015_auto_20201207_0744.py similarity index 100% rename from app/sync/migrations/0015_auto_20201207_0744.py rename to tubesync/sync/migrations/0015_auto_20201207_0744.py diff --git a/app/sync/migrations/0016_auto_20201208_0518.py b/tubesync/sync/migrations/0016_auto_20201208_0518.py similarity index 100% rename from app/sync/migrations/0016_auto_20201208_0518.py rename to tubesync/sync/migrations/0016_auto_20201208_0518.py diff --git a/app/sync/migrations/0017_auto_20201208_0521.py b/tubesync/sync/migrations/0017_auto_20201208_0521.py similarity index 100% rename from app/sync/migrations/0017_auto_20201208_0521.py rename to tubesync/sync/migrations/0017_auto_20201208_0521.py diff --git a/app/sync/migrations/0018_media_can_download.py b/tubesync/sync/migrations/0018_media_can_download.py similarity index 100% rename from app/sync/migrations/0018_media_can_download.py rename to tubesync/sync/migrations/0018_media_can_download.py diff --git a/app/sync/migrations/0019_auto_20201209_0857.py b/tubesync/sync/migrations/0019_auto_20201209_0857.py similarity index 100% rename from app/sync/migrations/0019_auto_20201209_0857.py rename to tubesync/sync/migrations/0019_auto_20201209_0857.py diff --git a/app/sync/migrations/__init__.py b/tubesync/sync/migrations/__init__.py similarity index 100% rename from app/sync/migrations/__init__.py rename to tubesync/sync/migrations/__init__.py diff --git a/app/sync/models.py b/tubesync/sync/models.py similarity index 100% rename from app/sync/models.py rename to tubesync/sync/models.py diff --git a/app/sync/signals.py b/tubesync/sync/signals.py similarity index 100% rename from app/sync/signals.py rename to tubesync/sync/signals.py diff --git a/app/sync/tasks.py b/tubesync/sync/tasks.py similarity index 100% rename from app/sync/tasks.py rename to tubesync/sync/tasks.py diff --git a/app/sync/templates/sync/dashboard.html b/tubesync/sync/templates/sync/dashboard.html similarity index 100% rename from app/sync/templates/sync/dashboard.html rename to tubesync/sync/templates/sync/dashboard.html diff --git a/app/sync/templates/sync/media-item.html b/tubesync/sync/templates/sync/media-item.html similarity index 100% rename from app/sync/templates/sync/media-item.html rename to tubesync/sync/templates/sync/media-item.html diff --git a/app/sync/templates/sync/media.html b/tubesync/sync/templates/sync/media.html similarity index 100% rename from app/sync/templates/sync/media.html rename to tubesync/sync/templates/sync/media.html diff --git a/app/sync/templates/sync/source-add.html b/tubesync/sync/templates/sync/source-add.html similarity index 100% rename from app/sync/templates/sync/source-add.html rename to tubesync/sync/templates/sync/source-add.html diff --git a/app/sync/templates/sync/source-delete.html b/tubesync/sync/templates/sync/source-delete.html similarity index 100% rename from app/sync/templates/sync/source-delete.html rename to tubesync/sync/templates/sync/source-delete.html diff --git a/app/sync/templates/sync/source-update.html b/tubesync/sync/templates/sync/source-update.html similarity index 100% rename from app/sync/templates/sync/source-update.html rename to tubesync/sync/templates/sync/source-update.html diff --git a/app/sync/templates/sync/source-validate.html b/tubesync/sync/templates/sync/source-validate.html similarity index 100% rename from app/sync/templates/sync/source-validate.html rename to tubesync/sync/templates/sync/source-validate.html diff --git a/app/sync/templates/sync/source.html b/tubesync/sync/templates/sync/source.html similarity index 100% rename from app/sync/templates/sync/source.html rename to tubesync/sync/templates/sync/source.html diff --git a/app/sync/templates/sync/sources.html b/tubesync/sync/templates/sync/sources.html similarity index 100% rename from app/sync/templates/sync/sources.html rename to tubesync/sync/templates/sync/sources.html diff --git a/app/sync/templates/sync/tasks-completed.html b/tubesync/sync/templates/sync/tasks-completed.html similarity index 100% rename from app/sync/templates/sync/tasks-completed.html rename to tubesync/sync/templates/sync/tasks-completed.html diff --git a/app/sync/templates/sync/tasks.html b/tubesync/sync/templates/sync/tasks.html similarity index 100% rename from app/sync/templates/sync/tasks.html rename to tubesync/sync/templates/sync/tasks.html diff --git a/app/sync/testdata/README.md b/tubesync/sync/testdata/README.md similarity index 100% rename from app/sync/testdata/README.md rename to tubesync/sync/testdata/README.md diff --git a/app/sync/testdata/metadata.json b/tubesync/sync/testdata/metadata.json similarity index 100% rename from app/sync/testdata/metadata.json rename to tubesync/sync/testdata/metadata.json diff --git a/app/sync/testdata/metadata_60fps.json b/tubesync/sync/testdata/metadata_60fps.json similarity index 100% rename from app/sync/testdata/metadata_60fps.json rename to tubesync/sync/testdata/metadata_60fps.json diff --git a/app/sync/testdata/metadata_60fps_hdr.json b/tubesync/sync/testdata/metadata_60fps_hdr.json similarity index 100% rename from app/sync/testdata/metadata_60fps_hdr.json rename to tubesync/sync/testdata/metadata_60fps_hdr.json diff --git a/app/sync/testdata/metadata_hdr.json b/tubesync/sync/testdata/metadata_hdr.json similarity index 100% rename from app/sync/testdata/metadata_hdr.json rename to tubesync/sync/testdata/metadata_hdr.json diff --git a/app/sync/tests.py b/tubesync/sync/tests.py similarity index 100% rename from app/sync/tests.py rename to tubesync/sync/tests.py diff --git a/app/sync/urls.py b/tubesync/sync/urls.py similarity index 100% rename from app/sync/urls.py rename to tubesync/sync/urls.py diff --git a/app/sync/utils.py b/tubesync/sync/utils.py similarity index 100% rename from app/sync/utils.py rename to tubesync/sync/utils.py diff --git a/app/sync/views.py b/tubesync/sync/views.py similarity index 98% rename from app/sync/views.py rename to tubesync/sync/views.py index 52912b92..6f5a8841 100644 --- a/app/sync/views.py +++ b/tubesync/sync/views.py @@ -15,7 +15,7 @@ from common.utils import append_uri_params from background_task.models import Task, CompletedTask from .models import Source, Media from .forms import ValidateSourceForm, ConfirmDeleteSourceForm -from .utils import validate_url, delete_file +from .utils import validate_url from .tasks import map_task_to_instance, get_error_message, get_source_completed_tasks from . import signals from . import youtube @@ -292,13 +292,11 @@ class DeleteSourceView(DeleteView, FormMixin): context_object_name = 'source' def post(self, request, *args, **kwargs): - source = self.get_object() delete_media_val = request.POST.get('delete_media', False) delete_media = True if delete_media_val is not False else False if delete_media: - for media in Media.objects.filter(source=source): - if media.media_file: - delete_file(media.media_file.name) + # TODO: delete media files from disk linked to this source + pass return super().post(request, *args, **kwargs) def get_success_url(self): diff --git a/app/sync/youtube.py b/tubesync/sync/youtube.py similarity index 100% rename from app/sync/youtube.py rename to tubesync/sync/youtube.py diff --git a/app/tubesync/__init__.py b/tubesync/tubesync/__init__.py similarity index 100% rename from app/tubesync/__init__.py rename to tubesync/tubesync/__init__.py diff --git a/app/tubesync/asgi.py b/tubesync/tubesync/asgi.py similarity index 100% rename from app/tubesync/asgi.py rename to tubesync/tubesync/asgi.py diff --git a/app/tubesync/gunicorn.py b/tubesync/tubesync/gunicorn.py similarity index 100% rename from app/tubesync/gunicorn.py rename to tubesync/tubesync/gunicorn.py diff --git a/app/tubesync/local_settings.py.container b/tubesync/tubesync/local_settings.py.container similarity index 100% rename from app/tubesync/local_settings.py.container rename to tubesync/tubesync/local_settings.py.container diff --git a/app/tubesync/local_settings.py.example b/tubesync/tubesync/local_settings.py.example similarity index 100% rename from app/tubesync/local_settings.py.example rename to tubesync/tubesync/local_settings.py.example diff --git a/app/tubesync/settings.py b/tubesync/tubesync/settings.py similarity index 100% rename from app/tubesync/settings.py rename to tubesync/tubesync/settings.py diff --git a/app/tubesync/urls.py b/tubesync/tubesync/urls.py similarity index 100% rename from app/tubesync/urls.py rename to tubesync/tubesync/urls.py diff --git a/app/tubesync/wsgi.py b/tubesync/tubesync/wsgi.py similarity index 100% rename from app/tubesync/wsgi.py rename to tubesync/tubesync/wsgi.py