nilfoer / gwaripper

Tool for conveniently downloading audios from r/gonewildaudio and similar subreddits
MIT License
30 stars 5 forks source link

Import audio #8

Closed Inexpress closed 1 year ago

Inexpress commented 1 year ago

I guess this is more of a feature/documentation request, but is there any simple way to manually add files to the database? This would be useful for e.g. Patreon audios

nilfoer commented 1 year ago

I added a very barebones page to import audio files from disk manually. It's accessible by clicking the '+' symbol in the nav bar. You can't add it to collections (yet), when there are multiple files etc. - I'll probably extend it at a later date.

Inexpress commented 1 year ago

Thank you, very much appreciated.

Inexpress commented 1 year ago

I began testing the functionality tonight. It works great, but figured I would report one minor issue relates to filename length. I tried adding an audio with a long title containing various tags. The result was: —All the tags and everything were preserved in the main audio title. No problems there. —The "Audio Page Title" and "Local Filename" don't seem to linebreak correctly. They extend well past the borders of the box, and push the audio/website/delete/heart buttons beyond the bounds of the UI unless I zoom far out.

At first I thought that was because 1) the "audio page title" is usually a short soundgasm title, and 2) the filenames (when audio is added automatically) usually contain spaces allowing for breaking, but these are replaced with underscores in the manual flow. But I checked some audios downloaded automatically earlier, which have long soundgasm titles, and in those cases the long "Audio Page Title" breaks fine.

Not sure if this photo helps at all. On the left, the non-wrapping text from the audio I added manually. On the right, wrapping text from the auto-added audio I mentioned. Wish I could diagnose the issue further but my web skills aren't up to scratch. You can probably reproduce the issue by manually adding any audio with a long title/lots of tags. image

nilfoer commented 1 year ago

Should be fixed in 1a90fbf

Thank you for the detailed description!