Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
torrent importing
#1
I've created a torrent using py3createtorrent.py (http://py3createtorrent.readthedocs.org/.../user.html). I have added a functionality myself to the python code to allow for a -C flag to add a category. It succesfully creates the torrent with the information I give it. Once i try to import this torrent into vuze via "add <path>" it adds the torrent but does not recognize the category field and does not add it(category field). A comment field is also specified when creating the torrent through py3createtorrent and that is successfully recognized and displayed when I add the torrent to vuze. Why would Vuze not recognize the category field on the torrent when its added? 
 
Reply
#2
Where's the torrent specification for supporting categories? Not heard of it before...
Reply
#3
(02-10-2015, 03:02 PM)'parg' Wrote: Where's the torrent specification for supporting categories? Not heard of it before...




 

I added it myself. It is not on the original py3createtorrent. The attached file is the python script with the added category option. I changed the extension to .txt as it would not let my attach it as a .py. You can see the -C option on line 469. Line 692 and 822 are all the places I added code to support the category field. After creating the torrent through my modified Apy.py and running "less <name>.torrent" I can see that the torrent file saved the category within the torrent file. But when I try to import it to Vuze the category field does not get added.  

 

 

 

 


Attached Files
.txt   Apy.txt (Size: 27.81 KB / Downloads: 0)
Reply
#4
My point is more - why do you expect this to work? Vuze handles .torrent files as specified here:

http://en.wikipedia.org/wiki/Torrent_file

There is no 'category' field so Vuze (and any other clients) isn't going to magically recognise it.

What if there were multiple categories? Should it be called 'categories', or maybe 'cats'? Should it actually be 'tag(s)' as that is what Vuze is moving to, rather than categories.

Should it be a b-encoded list? Or a comma separated string?

Anyway, categories are somewhat personal taxonomies and probably shouldn't be in the .torrent file at all.

You can use the 'hack' command to set a torrent's category after adding it.
Reply
#5
I see your point. My thinking in adding the category field was more along the automation lines. It would allow for torrent creation outside of Vuze and an import the torrent directly into an RSS feed. This would eliminate the need for the 'hack' step and would allow you to make a torrent on the cli and your work would stop there. 
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Deleting torrent delete .torrent file fields 3 910 12-14-2016, 06:09 PM
Last Post: nimack
  Importing SSL Certificate akiraaisha 1 720 02-25-2016, 11:00 PM
Last Post: parg



Users browsing this thread: 1 Guest(s)