mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-11-26 19:05:13 +00:00
style(dl): restore isort imports and drop dead pass
This commit is contained in:
@@ -47,16 +47,8 @@ from unshackle.core.constants import DOWNLOAD_CANCELLED, DOWNLOAD_LICENCE_ONLY,
|
|||||||
from unshackle.core.credential import Credential
|
from unshackle.core.credential import Credential
|
||||||
from unshackle.core.drm import DRM_T, ClearKeyCENC, MonaLisa, PlayReady, Widevine
|
from unshackle.core.drm import DRM_T, ClearKeyCENC, MonaLisa, PlayReady, Widevine
|
||||||
from unshackle.core.events import events
|
from unshackle.core.events import events
|
||||||
from unshackle.core.music import (
|
from unshackle.core.music import (MusicAudioIntegrityError, MusicMetadataResult, MusicPlanner, MusicRenderer,
|
||||||
MusicAudioIntegrityError,
|
file_md5, verify_music_audio, write_music_manifest, write_music_metadata)
|
||||||
MusicMetadataResult,
|
|
||||||
MusicPlanner,
|
|
||||||
MusicRenderer,
|
|
||||||
file_md5,
|
|
||||||
verify_music_audio,
|
|
||||||
write_music_manifest,
|
|
||||||
write_music_metadata,
|
|
||||||
)
|
|
||||||
from unshackle.core.proxies import Basic, ExpressVPN, Gluetun, Hola, NordVPN, ProtonVPN, SurfsharkVPN, WindscribeVPN
|
from unshackle.core.proxies import Basic, ExpressVPN, Gluetun, Hola, NordVPN, ProtonVPN, SurfsharkVPN, WindscribeVPN
|
||||||
from unshackle.core.service import Service
|
from unshackle.core.service import Service
|
||||||
from unshackle.core.services import Services
|
from unshackle.core.services import Services
|
||||||
@@ -67,30 +59,14 @@ from unshackle.core.tracks import Audio, Subtitle, Tracks, Video
|
|||||||
from unshackle.core.tracks.attachment import Attachment
|
from unshackle.core.tracks.attachment import Attachment
|
||||||
from unshackle.core.tracks.dv_fixup import apply_dv_fixup
|
from unshackle.core.tracks.dv_fixup import apply_dv_fixup
|
||||||
from unshackle.core.tracks.hybrid import Hybrid
|
from unshackle.core.tracks.hybrid import Hybrid
|
||||||
from unshackle.core.utilities import (
|
from unshackle.core.utilities import (find_font_with_fallbacks, find_missing_langs, get_debug_logger,
|
||||||
find_font_with_fallbacks,
|
get_system_fonts, init_debug_logger, is_close_match, log_event,
|
||||||
find_missing_langs,
|
suggest_font_packages, time_elapsed_since)
|
||||||
get_debug_logger,
|
|
||||||
get_system_fonts,
|
|
||||||
init_debug_logger,
|
|
||||||
is_close_match,
|
|
||||||
log_event,
|
|
||||||
suggest_font_packages,
|
|
||||||
time_elapsed_since,
|
|
||||||
)
|
|
||||||
from unshackle.core.utils import tags
|
from unshackle.core.utils import tags
|
||||||
from unshackle.core.utils.bitrate import apply_real_bitrates
|
from unshackle.core.utils.bitrate import apply_real_bitrates
|
||||||
from unshackle.core.utils.click_types import (
|
from unshackle.core.utils.click_types import (AUDIO_CODEC_LIST, LANGUAGE_RANGE, QUALITY_LIST, SEASON_RANGE,
|
||||||
AUDIO_CODEC_LIST,
|
SLOW_DELAY_RANGE, ContextData, MultipleChoice, MultipleVideoCodecChoice,
|
||||||
LANGUAGE_RANGE,
|
SubtitleCodecChoice)
|
||||||
QUALITY_LIST,
|
|
||||||
SEASON_RANGE,
|
|
||||||
SLOW_DELAY_RANGE,
|
|
||||||
ContextData,
|
|
||||||
MultipleChoice,
|
|
||||||
MultipleVideoCodecChoice,
|
|
||||||
SubtitleCodecChoice,
|
|
||||||
)
|
|
||||||
from unshackle.core.utils.collections import ci_get, merge_dict
|
from unshackle.core.utils.collections import ci_get, merge_dict
|
||||||
from unshackle.core.utils.selector import select_multiple
|
from unshackle.core.utils.selector import select_multiple
|
||||||
from unshackle.core.utils.subprocess import ffprobe
|
from unshackle.core.utils.subprocess import ffprobe
|
||||||
@@ -2176,9 +2152,6 @@ class dl:
|
|||||||
events.subscribe(events.Types.TRACK_REPACKED, service.on_track_repacked)
|
events.subscribe(events.Types.TRACK_REPACKED, service.on_track_repacked)
|
||||||
events.subscribe(events.Types.TRACK_MULTIPLEX, service.on_track_multiplex)
|
events.subscribe(events.Types.TRACK_MULTIPLEX, service.on_track_multiplex)
|
||||||
|
|
||||||
# The no_xxx guards are handled later right before track selection.
|
|
||||||
pass
|
|
||||||
|
|
||||||
tracks_label = "Getting Remote Tracks..." if self.is_remote else "Getting Tracks..."
|
tracks_label = "Getting Remote Tracks..." if self.is_remote else "Getting Tracks..."
|
||||||
with console.status(tracks_label, spinner="dots"):
|
with console.status(tracks_label, spinner="dots"):
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user