Hi
Thank you guys for the code.
I just have one request. Can you guys please advise me how would I go about creating a torrent file for another tracker say Jpop while this code does it work this will save some of us time. I have tried adding following to code but it doesnt seems to work;
On transcode.py
def make_torrent1(input_dir, output_dir, piece_length1): torrent1 = os.path.join(output_dir, os.path.basename(input_dir)) + "JPoP.torrent" if not os.path.exists(os.path.dirname(torrent1)): os.path.makedirs(os.path.dirname(torrent1)) tracker_url1 = 'https://jpopsuki.eu/YourAnnouceKey/announce' command1 = ["mktorrent", "-s", "jpop", "-p", "-a", tracker_url1, "-o", torrent1, "-l", piece_length1, input_dir] subprocess.check_output(command1, stderr=subprocess.STDOUT) return torrent1
and on redactedbetter
new_torrent1 = transcode.make_torrent1(transcode_dir, tmpdir, config.get('redacted', 'piece_length1'))
piece_length1= 20 on config file
After adding those line it runs but does not create a torrent file ready to upload on JPOP.
Thank you Sorry I could not open a this on requests.
Thank you
Hi
Thank you guys for the code.
I just have one request. Can you guys please advise me how would I go about creating a torrent file for another tracker say Jpop while this code does it work this will save some of us time. I have tried adding following to code but it doesnt seems to work;
On transcode.py
def make_torrent1(input_dir, output_dir, piece_length1): torrent1 = os.path.join(output_dir, os.path.basename(input_dir)) + "JPoP.torrent" if not os.path.exists(os.path.dirname(torrent1)): os.path.makedirs(os.path.dirname(torrent1)) tracker_url1 = 'https://jpopsuki.eu/YourAnnouceKey/announce' command1 = ["mktorrent", "-s", "jpop", "-p", "-a", tracker_url1, "-o", torrent1, "-l", piece_length1, input_dir] subprocess.check_output(command1, stderr=subprocess.STDOUT) return torrent1and on redactedbetter
new_torrent1 = transcode.make_torrent1(transcode_dir, tmpdir, config.get('redacted', 'piece_length1'))piece_length1= 20 on config file
After adding those line it runs but does not create a torrent file ready to upload on JPOP.
Thank you Sorry I could not open a this on requests.
Thank you