yomguy / DeeFuzzer

Light and instant media streaming client for web radios and TVs written in Python
https://github.com/yomguy/DeeFuzzer
GNU General Public License v3.0
141 stars 31 forks source link

MySQL songs requests #107

Closed doomy23 closed 1 year ago

doomy23 commented 2 years ago

I added this feature to my website: https://radiodoom.ca and its working fine! Thought some people would enjoy this feature too, basically you add the settings, for eg :

...
           "media": {
                "bitrate": 128,
                "source": "/var/www/music",
                "mysql": {
                    "host": "127.0.0.1",
                    "port": 3306,
                    "user": "user",
                    "password": "password",
                    "database": "database_name",
                    "table": "radio_playlist_vaporfunk",
                    "field": "path",
                    "request_table": "radio_request_vaporfunk",
                    "request_field": "path",
                    "request_played": "played"
                },
...

When a new request is added in the database, it will be played and marked as played on the next song.

yomguy commented 1 year ago

Hi @doomy23 Cool feature I will just merge now, thanks! (sorry for the delay)