Commit b93bc1b2 authored by totalreset's avatar totalreset
Browse files

Added 'phreaktagger.py' and updated README.md

parent 4e22b167
# Phreakuency Radio
## The Pirate Radio
Free Underground Online Internet Radio. https://phreakuency.tk/
Free Underground Online Internet Radio. https://phreakuency.net/
## Here are some scripts and stuff
Liquidsoap scripts and website stuff should be found here.
Changelog will come soon.
phreakuencyradioV2.liq is the actual radio script.
phreakuencyradioV2.liq is the actual radio script done with Liquidsoap.
You can find video to audio converter for the stream, id3 tagger scripts etc...
# Changelog
## v1.7
## v1.1
- November 2021. Fixed id3 tags and "Now playing" metadata js.
## v1.0
- October 2021. "Now playing" option released, now showing the metadata of the songs.
## v0.7
- 8th January 2021. Made a better page for "The Archive" and done a graphic for it. New domain aswell "thearchive.phreakuency.tk".
## v1.6
## v0.6
- 1 January 2021. First sets updated on "The Archive".
## v1.3
## v0.3
- 14th Dicember 2020. Added ffmpeg script that takes audio from video streamed sended via RTMP and send it into liquidsoap. Live programs are working in audio only aswell.
## v1.2
## v0.2
- 27th November 2020. Video Live player added, live shows soon. Font color changes at refresh. "The Archive" added. New domains now! phreakuency.tk
## v1.1
## v0.1
- 10th October 2020. Graphics from Alix added, video streaming support and css modified
## v1.0
## v0.03
- 13th September. 24/7 Auto dj script with smart fading. Jingles are added and difference between day and night playlists.
## v0.7
## v0.02
- 16th May. Website created and support to multiple inputs/outputs with icecast.
## v0.1
## v0.01
- Somewhen in spring 2020. beginning of corona. First website and streaming server set up with icecast2. Realese party happened streaming Mark's bedroom party.
#!/bin/python3
# Phreaktagger - id3 tagger - phreakuency.net
## The program will set id3 "song" tag with the filename of the .mp3 file.
from mp3_tagger import MP3File, VERSION_BOTH
import os
print("\nPhreaktagger v0.1")
print("\nStarting tagging...\n")
folder = "/path/to/your/folder/"
songs = os.listdir(folder)
song_path = ""
tagged_songs = 0
for song in songs:
try:
song_path = folder + song
mp3 = MP3File(song_path)
mp3.song = song
tagged_songs += 1
print(mp3.song)
print("Song tagged.\n")
except:
print("Not .mp3 format, skipping.\n")
pass
print("\nThe total number of tagged songs is " + str(tagged_songs))
print("\nTagging complete. Thanks for using phreaktagger.")
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment