gokberkkocak / chilledcow-scrobbler

LastFM scrobbler for chilledcow youtube stream
5 stars 0 forks source link

Youtube URL instead of Channel ID #2

Open Ajan opened 1 year ago

Ajan commented 1 year ago

If we provide the Youtube URL in the code; then the Youtube API is not necessary right? Would the code still work then?

As in, we can replace the line url = get_live_video_url(data["Youtube_Data_API_Key"], data["chilledcow_youtube_channel_id"])

in the original code with url = data["youtube_url"]

Ajan commented 1 year ago

Additionally, it looks like snapshots are being created with every iteration and not deleted; can we add a few lines to delete the old snapshots after a certain interval or maybe with every iteration?

gokberkkocak commented 1 year ago

Hi Ajan,

I'm not actively using this version of the scrobbler anymore. I had a re-write in a while back in rust and you can see in here. That one directly uses youtube urls for simplicity.

But If you prefer using this version, I'm happy to accept your changes in PR as well.