Robpol86 / FlashAirMusic

Convert FLAC music and sync it to a FlashAir WiFI SD card.
MIT License
0 stars 0 forks source link

Move entirely to Lua scripts. #5

Open Robpol86 opened 8 years ago

Robpol86 commented 8 years ago

I got this:

2016-02-10 18:47:41,547 10199 DEBUG    flash_air_music.upload.interface         Moving to /MUSIC/Dead or Alive - 1985 - Youthquake - 01 - You Spin Me Round (Like a Record).mp3 and setting mtime 0x484a8d6b
2016-02-10 18:47:41,548 10199 DEBUG    flash_air_music.upload.api               Querying url http://10.192.168.149/MUSIC/_fam_move_touch.lua?/MUSIC/_fam_staged.bin%200x484a8d6b%20/MUSIC/Dead%20or%20Alive%20-%201985%20-%20Youthquake%20-%2001%20-%20You%20Spin%20Me%20Round%20%28Like%20a%20Record%29.mp3
2016-02-10 18:47:41,549 10199 INFO     requests.packages.urllib3.connectionpool Starting new HTTP connection (1): 10.192.168.149
2016-02-10 18:47:42,074 10199 DEBUG    requests.packages.urllib3.connectionpool "GET /MUSIC/_fam_move_touch.lua?/MUSIC/_fam_staged.bin%200x484a8d6b%20/MUSIC/Dead%20or%20Alive%20-%201985%20-%20Youthquake%20-%2001%20-%20You%20Spin%20Me%20Round%20%28Like%20a%20Record%29.mp3 HTTP/1.1" 400 None
2016-02-10 18:47:42,075 10199 DEBUG    flash_air_music.upload.api               Response code: 400
2016-02-10 18:47:42,087 10199 DEBUG    flash_air_music.upload.api               Response text: {"error":"arg_destination doesn't end with .mp3.","arg_destination":"\/MUSIC\/Dead or Alive - 1985 - Youthquake - 01 - You Spin Me Round (Like a Record).m\u0015","arg_mtime":"0x484a8d6b","arg_source":"\/MUSIC\/_fam_staged.bin"}

Probably best to move to Lua scripts for everything. Get files via Lua. Move files via config file.