Move lookup modules to approp app
This commit is contained in:
@ -3,9 +3,9 @@ import pytest
|
||||
|
||||
from django.urls import reverse
|
||||
|
||||
from scrobbles.models import Scrobble
|
||||
from music.models import Track
|
||||
from podcasts.models import Episode
|
||||
from vrobbler.apps.scrobbles.models import Scrobble
|
||||
from vrobbler.apps.music.models import Track
|
||||
from vrobbler.apps.podcasts.models import Episode
|
||||
|
||||
|
||||
@pytest.mark.django_db
|
||||
|
||||
0
tests/videos_tests/__init__.py
Normal file
0
tests/videos_tests/__init__.py
Normal file
@ -1,6 +1,6 @@
|
||||
import pytest
|
||||
|
||||
from vrobbler.apps.scrobbles.imdb import lookup_video_from_imdb
|
||||
from vrobbler.apps.videos.imdb import lookup_video_from_imdb
|
||||
|
||||
|
||||
@pytest.mark.skip(reason="Need to sort out third party API testing")
|
||||
@ -12,8 +12,7 @@ from django.urls import reverse
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
from django_extensions.db.models import TimeStampedModel
|
||||
from scrobbles.mixins import ScrobblableMixin
|
||||
from scrobbles.theaudiodb import lookup_artist_from_tadb
|
||||
from vrobbler.apps.scrobbles.theaudiodb import lookup_album_from_tadb
|
||||
from music.theaudiodb import lookup_artist_from_tadb, lookup_album_from_tadb
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
BNULL = {"blank": True, "null": True}
|
||||
|
||||
@ -3,7 +3,7 @@ import re
|
||||
|
||||
from musicbrainzngs.caa import musicbrainz
|
||||
|
||||
from scrobbles.musicbrainz import (
|
||||
from music.musicbrainz import (
|
||||
lookup_album_dict_from_mb,
|
||||
lookup_artist_from_mb,
|
||||
lookup_track_from_mb,
|
||||
|
||||
@ -9,9 +9,9 @@ from django.db import models
|
||||
from django.urls import reverse
|
||||
from django.utils import timezone
|
||||
from django_extensions.db.models import TimeStampedModel
|
||||
from music.lastfm import LastFM
|
||||
from music.models import Artist, Track
|
||||
from podcasts.models import Episode
|
||||
from scrobbles.lastfm import LastFM
|
||||
from scrobbles.utils import check_scrobble_for_finish
|
||||
from sports.models import SportEvent
|
||||
from videos.models import Series, Video
|
||||
@ -144,7 +144,7 @@ class KoReaderImport(BaseFileImportMixin):
|
||||
sqlite_file = models.FileField(upload_to=get_path, **BNULL)
|
||||
|
||||
def process(self, force=False):
|
||||
from scrobbles.koreader import process_koreader_sqlite_file
|
||||
from books.koreader import process_koreader_sqlite_file
|
||||
|
||||
if self.processed_finished and not force:
|
||||
logger.info(
|
||||
|
||||
@ -34,7 +34,6 @@ from scrobbles.constants import (
|
||||
)
|
||||
from scrobbles.export import export_scrobbles
|
||||
from scrobbles.forms import ExportScrobbleForm, ScrobbleForm
|
||||
from scrobbles.imdb import lookup_video_from_imdb
|
||||
from scrobbles.models import (
|
||||
AudioScrobblerTSVImport,
|
||||
ChartRecord,
|
||||
@ -55,7 +54,8 @@ from scrobbles.tasks import (
|
||||
process_lastfm_import,
|
||||
process_tsv_import,
|
||||
)
|
||||
from scrobbles.thesportsdb import lookup_event_from_thesportsdb
|
||||
from sports.thesportsdb import lookup_event_from_thesportsdb
|
||||
from videos.imdb import lookup_video_from_imdb
|
||||
|
||||
from vrobbler.apps.music.aggregators import live_charts
|
||||
|
||||
|
||||
Reference in New Issue
Block a user