mirror of
https://github.com/darkzoul5/YoutubePlaylistSync.git
synced 2026-07-03 04:23:59 +03:00
lint: fix all ruff errorrs
This commit is contained in:
@@ -45,7 +45,6 @@ def main(argv: list[str] | None = None) -> int:
|
|||||||
print(f"START: {vid} → {target}")
|
print(f"START: {vid} → {target}")
|
||||||
|
|
||||||
async def on_completed(payload):
|
async def on_completed(payload):
|
||||||
pid = payload.get("playlist_id")
|
|
||||||
vid = payload.get("video_id")
|
vid = payload.get("video_id")
|
||||||
target = payload.get("target")
|
target = payload.get("target")
|
||||||
print(f"OK: {vid} → {target}")
|
print(f"OK: {vid} → {target}")
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ from __future__ import annotations
|
|||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import Any, Dict, List, Optional
|
from typing import Any, Dict, List
|
||||||
|
|
||||||
|
|
||||||
def _default_ffmpeg_path() -> str:
|
def _default_ffmpeg_path() -> str:
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import Iterable, List, Sequence
|
from typing import List, Sequence
|
||||||
|
|
||||||
from ..models import FilesystemEntry
|
from ..models import FilesystemEntry
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,5 @@
|
|||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from dataclasses import dataclass
|
|
||||||
|
|
||||||
|
|
||||||
ILLEGAL_CHARS = '<>:"/\\|?*'
|
ILLEGAL_CHARS = '<>:"/\\|?*'
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import asyncio
|
|||||||
import threading
|
import threading
|
||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import Any, Dict, Optional
|
from typing import Any, Dict
|
||||||
|
|
||||||
from PySide6 import QtCore
|
from PySide6 import QtCore
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ from __future__ import annotations
|
|||||||
|
|
||||||
import asyncio
|
import asyncio
|
||||||
import sys
|
import sys
|
||||||
from pathlib import Path
|
|
||||||
|
|
||||||
from app.core.download.downloader import Downloader
|
from app.core.download.downloader import Downloader
|
||||||
from app.core.download.queue_manager import DownloadJob
|
from app.core.download.queue_manager import DownloadJob
|
||||||
|
|||||||
Reference in New Issue
Block a user