summaryrefslogtreecommitdiff
path: root/reset_database.py
blob: 0c0d15a7d0d6dabf1ddb375f1338e6e8d94bb5ad (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env python

from time import sleep
from components.database import subscriptions
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()