summaryrefslogtreecommitdiffstats
path: root/torrentparser.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix TorrentParserArno2017-02-261-0/+1
| | | | Don't std::bad_alloc if we have an invalid string.
* Fix parsing Lists and DictionariesArno2016-11-051-2/+2
| | | | | Corner case: Don't crash if Lists or Dictionaries end at EOF. Check if mPos is still in range.
* Implement file searchArno2016-08-201-0/+28
| | | | | Search for a regular expression in all files of all torrents and select them.
* Present torrent files as a treeArno2016-08-201-5/+2
| | | | | | | | | | | | A torrent info dictionary has two modes: single and multi files. When in multi-mode, the name-entry is the directory containing the files. Represent it as a tree. During testing I discovered a fatal bug in the torrent parser: If we encounter an invalid string, we have to move mPos forward, else we will loop indefinitely until we're OOM. I also added some icons for folders, files and trackers.
* Added torrent supportArno2016-08-191-0/+103
The BEncode parser is loosely based on this: https://github.com/jif/Bencode/blob/master/bencode.cpp Not perfect, but enough to display all the essential data in the shiny new TorrentDisplay dialog.