-
-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update database #16
Comments
Currently no, but I plan to fix this after the full-text search refactor #24. In the mean time an option could be to change the tempfile declaration on line 83 to a persistent directory and something like: def download_channel(channel_id, channel_name, language, number_of_jobs, s):
print("Downloading channel")
#with tempfile.TemporaryDirectory() as tmp_dir:
dir_name = 'saved_vtts'
os.mkdir(dir_name)
cwd = os.getcwd()
tmp_dir = os.path.join(cwd, dir_name)
print('Saving vtt files to', tmp_dir)
channel_url = f"https://www.youtube.com/channel/{channel_id}/videos"
list_of_videos_urls = get_videos_list(channel_url)
download_vtts(number_of_jobs, list_of_videos_urls, language, tmp_dir)
add_channel_info(channel_id, channel_name, channel_url)
print("Adding VTT data to db")
vtt_to_db(channel_id, tmp_dir, s) Alternatively you can speed up the download process by specifying |
@darkspacer added this feature with "Update db #43"
|
Hi, can I update my database without downloading all a subtitles of YouTube channel again?
The text was updated successfully, but these errors were encountered: