Blue9 / AudioJack

:sound: A smart YouTube-to-MP3 converter that automatically finds and adds metadata/ID3 tags (artist, title, album, cover art) to downloaded MP3 files.
34 stars 18 forks source link

Banned words use regular expressions #4

Closed icecoldfire closed 7 years ago

icecoldfire commented 7 years ago

You can make your banned words filter better with regular expressions.

For 320kbps you can use this: [0-9]*[\s]?kbp[s]?. For 1080p and 720p you can use this: [0-9]*p.

Blue9 commented 7 years ago

Thanks for your suggestions. I will promptly commit the first suggestion.

As for your second suggestion, the regular expression could remove more than just video quality terms. For example, if a song title contains "100p", "12:00pm", or something similar, the regex will affect the title even though it may be valid. Therefore, I think it is best to just enter the video qualities manually.