8 ms·
I wrote https://github.com/Bogdanp/Pirate https://github.com/Bogdanp/Pirate as a fun little exercise and thought some of you might find it useful.
by Bogdanp 15y ago
I wrote https://github.com/Bogdanp/Pirate https://github.com/Bogdanp/Pirate as a fun little exercise and thought some of you might find it useful.
- allisfine 15y agoGreat! Just one thing: I see you are splitting by |, and some torrents (very few, but some) have | in their name (I didn't bother with escaping that).
- Bogdanp 15y agoI've accounted for that by grabbing all the other fields before grabbing the title. `python pirate.py -l | grep '|'` seems to yield correct results :). https://github.com/Bogdanp/Pirate/blob/master/pirate.py#L27 https://github.com/Bogdanp/Pirate/blob/master/pirate.py#L27