diff options
| author | A Farzat <a@farzat.xyz> | 2025-10-08 18:10:46 +0300 |
|---|---|---|
| committer | A Farzat <a@farzat.xyz> | 2025-10-08 18:10:46 +0300 |
| commit | 1d7afc2f1372e46a102d088242bbccec5ba5af4e (patch) | |
| tree | aa0a83acedb3b4c63ebfc1478228b55e6cfa29da /reset_database.py | |
| parent | 05607dc845a1dd111fd393478acf084ca3532081 (diff) | |
| download | csca5028-1d7afc2f1372e46a102d088242bbccec5ba5af4e.tar.gz csca5028-1d7afc2f1372e46a102d088242bbccec5ba5af4e.zip | |
Add a title attribute to subscriptions
Diffstat (limited to 'reset_database.py')
| -rwxr-xr-x | reset_database.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/reset_database.py b/reset_database.py index 075e408..0c0d15a 100755 --- a/reset_database.py +++ b/reset_database.py @@ -6,11 +6,11 @@ from components.subscriptions.main import Subscription from components.videos import VideoTuple subscriptions.delete_many({}) -for short_id in ['fiwzLy-8yKzIbsmZTzxDgw', 'Ef0-WZoqYFzLZtx43KPvag', - 'PF-oYb2-xN5FbCXy0167Gg', 'hlgI3UHCOnwUGzWzbJ3H5w', ]: - sub = Subscription( - _id='yt:channel:'+short_id, - link='http://www.youtube.com/feeds/videos.xml?channel_id=UC'+short_id, - time_between_fetches=300, - ) - sub.insert() +# for short_id in ['fiwzLy-8yKzIbsmZTzxDgw', 'Ef0-WZoqYFzLZtx43KPvag', +# 'PF-oYb2-xN5FbCXy0167Gg', 'hlgI3UHCOnwUGzWzbJ3H5w', ]: +# sub = Subscription( +# _id='yt:channel:'+short_id, +# link='http://www.youtube.com/feeds/videos.xml?channel_id=UC'+short_id, +# time_between_fetches=300, +# ) +# sub.insert() |
