Song Contest 152 (Results posted!)

This forum is for discussion about anything else.
User avatar
Plotinus
Plotinus
Kitten Caboodle
User avatar
User avatar
Plotinus
Kitten Caboodle
Kitten Caboodle
Posts: 7611
Joined: March 13, 2015
Location: UTC+1

Post Post #8 (isolation #0) » Wed Jul 01, 2020 10:05 pm

Post by Plotinus »

I'm stacking sandbags against the river of your troubles
The failure mode of clever is asshole.

Modding checklists | Sequencer is in Game 5 | Space II is in Day 4
User avatar
Plotinus
Plotinus
Kitten Caboodle
User avatar
User avatar
Plotinus
Kitten Caboodle
Kitten Caboodle
Posts: 7611
Joined: March 13, 2015
Location: UTC+1

Post Post #27 (isolation #1) » Sat Jul 04, 2020 12:22 am

Post by Plotinus »

I use a python script to download everything into one folder. it can handle a few different kinds of links
The failure mode of clever is asshole.

Modding checklists | Sequencer is in Game 5 | Space II is in Day 4
User avatar
Plotinus
Plotinus
Kitten Caboodle
User avatar
User avatar
Plotinus
Kitten Caboodle
Kitten Caboodle
Posts: 7611
Joined: March 13, 2015
Location: UTC+1

Post Post #53 (isolation #2) » Mon Jul 06, 2020 6:33 am

Post by Plotinus »

In post 52, toolenduso wrote:2. somebody said they use python to scrape the entry links, would you mind sharing that script with me?
songContest.py

usage: just type

Code: Select all

songContest.py "https://forum.mafiascum.net/viewtopic.php?f=6&t=83548"
and it will download everything to ~/Music/SC152/, but you can specify a different directory at runtime if you want.

It uses beautiful soup to parse the HTML and find the links to the songs. It uses youtube-dl to download youtube songs or it tries to download other songs with wget if it detects a file extension that suggests that'll work. If it can't handle a link it'll output an error message to the console.

It uses threading to speed the downloads up.
The failure mode of clever is asshole.

Modding checklists | Sequencer is in Game 5 | Space II is in Day 4
User avatar
Plotinus
Plotinus
Kitten Caboodle
User avatar
User avatar
Plotinus
Kitten Caboodle
Kitten Caboodle
Posts: 7611
Joined: March 13, 2015
Location: UTC+1

Post Post #56 (isolation #3) » Mon Jul 06, 2020 10:08 am

Post by Plotinus »

I'm happy to answer any questions about what parts of it do.

This was my first time using threading and there's some room for improvement -- it works and doesn't do anything bad, but it would be better if it outputted all the error messages at the end, instead I have to scroll through a lot of youtube-dl's output to find the "Couldn't handle Belarus' link: not available in your country".

Looking at the code you would think that would happen last because it's the last thing in the code, but threading can make things happen out of order. So I've been meaning to redo that bit for about a year, but I haven't been getting to it because it does work.

Actually, after typing all this out I think if I add a --quiet flag to youtube-dl and turn the logging down (or off) then it'll quiet youtube-dl down enough to make it a non-issue. I've edited the gist.
The failure mode of clever is asshole.

Modding checklists | Sequencer is in Game 5 | Space II is in Day 4
User avatar
Plotinus
Plotinus
Kitten Caboodle
User avatar
User avatar
Plotinus
Kitten Caboodle
Kitten Caboodle
Posts: 7611
Joined: March 13, 2015
Location: UTC+1

Post Post #83 (isolation #4) » Sat Jul 18, 2020 8:24 am

Post by Plotinus »

Contest of the muffled lyrics, the vast majority of these I couldn't tell if they were in a language I can speak or not

Spoiler: Alphabetaised by country
Antarctica Tentei - painful and too much happening
Argentina Madari - Clinton Cerejo feat Vishal Dadlani & Sonu Kakkar - this is great
Belarus Amigo The Devil - Dahmer Does Hollywood - i really like this
Burkina Faso The\ Murder\ Capital\ -\ More\ Is\ Less - bad
Canada Orchards\ -\ Peggy - it's all right i guess
Central Africal Republic Slade\ -\ Coz\ I\ Luv\ You - it's all right i guess except for the high pitched parts
China Great\ Expectations - this is great
Egypt Yumi Zouma - Lie Like You Want Me Back - the words are too slurred to understand them and it's a bit too pink for me
eSwatini Daft Punk - Beyond - not my thing
Flavortown Hinds - Just Like Kids -- too muffled to understand
France Mike\ Posner\ -\ I\ Took\ A\ Pill\ In\ Ibiza - this is great
Germany Vieon\ -\ Fly\ By\ Light - there's so much about this that i dislike but it's great
Hinamizawa Vince\ Staples\ -\ Crabs\ In\ A\ Bucket - i like the parts of this i can understand but i wish i could understand more of it
Indonesia Men\ At\ Work\ -\ Overkill - mediocre
Japan fox\ capture\ plan\ _\ やけにSUNSHINE\ feat.おかもとえみ - unremarkable
Loompaland VETERANENDAG\ 2020\ DI-RECT\ -\ SOLDIER\ ON - i liked this once the talking finally stopped and the singing started
Macau FKA\ twigs\ -\ Cellophane - this is way too high pitched
Mongolia Emperor X - Allahu Akbar - a one-sided view of Islam
Nicaragua Dorian\ Electra\ -\ Flamboyant - there's too much going on in this
North Korea Roll\ Right\ Over - i dont know if i like this or not
Poland Marianas\ Trench\ -\ Truth\ Or\ Dare - upsetting, didn't finish
South Korea SURREAL - too muffled to understand the words
Spain Jessie\ Ware\ -\ Spotlight - painful
Sweden Dark tranquility - Insanity's Crescendo - i like this more than i thought i would but i can't tell what they're saying. also it makes me want to listen to A Perfect Circle
USA Eskimo\ Callboy\ -\ Hypa\ Hypa - I think i'm voting this higher than I otherwise would because I persist in reading the title as if it were written in Cyrillic
The failure mode of clever is asshole.

Modding checklists | Sequencer is in Game 5 | Space II is in Day 4
User avatar
Plotinus
Plotinus
Kitten Caboodle
User avatar
User avatar
Plotinus
Kitten Caboodle
Kitten Caboodle
Posts: 7611
Joined: March 13, 2015
Location: UTC+1

Post Post #113 (isolation #5) » Sun Jul 19, 2020 7:00 pm

Post by Plotinus »

congrats, Hiraki!
The failure mode of clever is asshole.

Modding checklists | Sequencer is in Game 5 | Space II is in Day 4

Return to “General Discussion”