lint
This commit is contained in:
parent
899b1383de
commit
75d54d3dbf
2 changed files with 5 additions and 5 deletions
|
@ -2,9 +2,8 @@
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import shutil
|
import shutil
|
||||||
from pathlib import Path
|
|
||||||
|
|
||||||
import tomllib
|
import tomllib
|
||||||
|
from pathlib import Path
|
||||||
|
|
||||||
from rwx import ps
|
from rwx import ps
|
||||||
|
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
from abc import ABC, abstractmethod
|
from abc import ABC, abstractmethod
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
from yt_dlp import YoutubeDL
|
from yt_dlp import YoutubeDL
|
||||||
|
|
||||||
from rwx import Object
|
from rwx import Object
|
||||||
|
@ -125,7 +126,7 @@ class Video(Tab):
|
||||||
"outtmpl": "%(id)s.%(ext)s",
|
"outtmpl": "%(id)s.%(ext)s",
|
||||||
"writesubtitles": True,
|
"writesubtitles": True,
|
||||||
"writethumbnail": True,
|
"writethumbnail": True,
|
||||||
}
|
},
|
||||||
).download([self.url])
|
).download([self.url])
|
||||||
|
|
||||||
def get_url(self) -> str:
|
def get_url(self) -> str:
|
||||||
|
@ -194,7 +195,7 @@ def download_video(video_id: str | None) -> None:
|
||||||
],
|
],
|
||||||
"writesubtitles": True,
|
"writesubtitles": True,
|
||||||
"writethumbnail": True,
|
"writethumbnail": True,
|
||||||
}
|
},
|
||||||
).download([f"{URL}/watch?v={video_id}"])
|
).download([f"{URL}/watch?v={video_id}"])
|
||||||
|
|
||||||
|
|
||||||
|
@ -213,7 +214,7 @@ def extract(opt: dict[str, Any], url: str) -> dict[str, Any]:
|
||||||
**opt,
|
**opt,
|
||||||
"extract_flat": True,
|
"extract_flat": True,
|
||||||
"skip_download": True,
|
"skip_download": True,
|
||||||
}
|
},
|
||||||
).extract_info(url, download=False)
|
).extract_info(url, download=False)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue