mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-11-25 02:15:08 +00:00
style: apply pre-commit auto-fixes (isort, whitespace, eof)
This commit is contained in:
@@ -6,17 +6,9 @@ from typing import Any, Optional
|
|||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from unshackle.core.music.extract import (
|
from unshackle.core.music.extract import (build_music_from_songs, classify_release_kind, dedupe_track_options,
|
||||||
build_music_from_songs,
|
duration_seconds, first_number, first_text, format_duration, format_names,
|
||||||
classify_release_kind,
|
year_from_value)
|
||||||
dedupe_track_options,
|
|
||||||
duration_seconds,
|
|
||||||
first_number,
|
|
||||||
first_text,
|
|
||||||
format_duration,
|
|
||||||
format_names,
|
|
||||||
year_from_value,
|
|
||||||
)
|
|
||||||
from unshackle.core.music.models import MusicTrackOption
|
from unshackle.core.music.models import MusicTrackOption
|
||||||
from unshackle.core.titles.music import Music, Song
|
from unshackle.core.titles.music import Music, Song
|
||||||
|
|
||||||
|
|||||||
@@ -15,23 +15,8 @@ except ImportError: # pragma: no cover - optional artwork enhancement
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
from mutagen.flac import FLAC, Picture
|
from mutagen.flac import FLAC, Picture
|
||||||
from mutagen.id3 import (
|
from mutagen.id3 import (APIC, COMM, TALB, TCOM, TCON, TCOP, TDRC, TIT2, TPE1, TPE2, TPOS, TRCK, TSRC, TXXX,
|
||||||
APIC,
|
ID3NoHeaderError)
|
||||||
COMM,
|
|
||||||
ID3NoHeaderError,
|
|
||||||
TALB,
|
|
||||||
TCOM,
|
|
||||||
TCON,
|
|
||||||
TCOP,
|
|
||||||
TDRC,
|
|
||||||
TIT2,
|
|
||||||
TPE1,
|
|
||||||
TPE2,
|
|
||||||
TPOS,
|
|
||||||
TRCK,
|
|
||||||
TSRC,
|
|
||||||
TXXX,
|
|
||||||
)
|
|
||||||
from mutagen.mp3 import MP3
|
from mutagen.mp3 import MP3
|
||||||
from mutagen.mp4 import MP4, MP4Cover
|
from mutagen.mp4 import MP4, MP4Cover
|
||||||
except ImportError: # pragma: no cover - optional tagging dependency
|
except ImportError: # pragma: no cover - optional tagging dependency
|
||||||
|
|||||||
@@ -3,14 +3,14 @@ Firefox Cookie and LocalStorage Extractor Utility for unshackle.
|
|||||||
Provides a secure, read-only mechanism to extract authentication tokens from Firefox.
|
Provides a secure, read-only mechanism to extract authentication tokens from Firefox.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import sqlite3
|
|
||||||
import platform
|
|
||||||
import os
|
import os
|
||||||
|
import platform
|
||||||
import shutil
|
import shutil
|
||||||
|
import sqlite3
|
||||||
import tempfile
|
import tempfile
|
||||||
|
from http.cookiejar import Cookie, CookieJar
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from http.cookiejar import CookieJar, Cookie
|
from typing import Dict, List, Optional
|
||||||
from typing import Dict, Optional, List
|
|
||||||
|
|
||||||
|
|
||||||
def get_firefox_root() -> Path:
|
def get_firefox_root() -> Path:
|
||||||
|
|||||||
Reference in New Issue
Block a user