Edit .torrent files [solved]

Does anyone know of a cli app that cleanly handles editing .torrent files or is this doable in rtorrent somehow? rutorrent seems to handle it ok on my seedbox.
The reason I ask is, a site I'm a member of encourages long term seeding which is set by interval=n at the end of the tracker info, ie
https://xxxxxx.xx/announce.php?passkey=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&interval=1
I've tried transmission which will edit the .torrent but it adds an id hash, shown in the top example below, whereas I want to be like the second example.
ftp://ftp.archlinux.org/iso/2009.08/archlinux-2009.08-netinstall-x86_64.iso90fe4805a22c8f8c.torrent
instead of
ftp://ftp.archlinux.org/iso/2009.08/archlinux-2009.08-netinstall-x86_64.iso.torrent
Last edited by rusty99 (2009-12-14 15:04:53)

kazuo wrote:To parse bencode I use http://pypi.python.org/pypi/BitTorrent-bencode/5.0.8 is a python package, I use it interactively with ipython
That looks decent, thanks.

Similar Messages

  • Edit .torrent files to add or change the trackers.

    I am a user of transmission-remote and it seems it cannot edit the torrent files; does anyone know a way to edit the .torrent files in order to add or change trackers?
    I looked around, but I got nothing; mktorrent seemed fine but it seems unable to edit existing torrents...
    Thanks.
    etb

    my0pic wrote:
    You can try TrackerModify http://publicbt.com/tracker_modify.pl
    I have it working from a cron job that processes new torrents.
    Totally forgotten until I saw this post.
    (edit: I'm using rtorrent. Just tested this on an already running torrent and no need to restart torrents)
    The script perfectly add torrents to the .torrent file.
    But, how do I add trackers to a running torrent in rtorrent. I tried adding trackers to a .torrent file in .sessions folder of rtorrent but no success.

  • Edit the trackers from a torrent file using vim.

    Hi.
    I constantly need to edit torrent files to change their trackers. So I wrote a vim plugin to handle this.
    The plugin is at http://fma.if.usp.br/~kazuo/torrent.vba
    You need hunnyb (in aur) OR bittorent (the original one, is in extra/bittorent) and a vim compiled with python.
    To use simple install the vba and open a torrent file, in the buffer you see a list of trackers from the torrent file, edit it, one tracker per line with a leading space, and save it, its automatic regenerate the torrent file. (Dont touch the other lines in the buffer)
    This is the first version, please try it and report back.
    The buffer is somewhat more complicated than needed because I like to add other infos to be edited, so I'm using ConfigParser.
    I hope its is useful to someone!
    EDIT:
    New version 0.5.5: Support for tiers. Now its do the correct with tiers, to separate a tier from other use a line containing a '.' (dot) with leading spaces, for example
    [torrent]
    trackers =
    http://tracker.publicbt.com:80/announce
    udp://tracker.publicbt.com:80/announce
    http://tracker.thepiratebay.org/announce
    udp://tracker.thepiratebay.org:80/announce
    http://tracker.openbittorrent.com/announce
    udp://tracker.openbittorrent.com:80/announce
    0.5.6: Tiers now can be separated by empty lines (like utorrent tracker list)
    Last edited by kazuo (2010-05-30 10:06:58)

    I don't think you can because a Photoshop file (PSD) with layers will be flattened when you open up in Photoshop Touch.
    I prepared a Photoshop file with one layer of image, one layer of text over a background using Photoshop CS6 on my Mac Pro and upload the PSD file onto Creative Cloud. I then open this file in Photoshop Touch (on iPad) but it comes out as a single flat layer merging all three layers. Hope this helps.
    Below: 3 layers in Photoshop CS6 (with one layer of text)
    Below: Flattened into one layer in Photoshop Touch..

  • Editing the sudoers file[SOLVED]

    I need to edit this file.
    I open it with the visudo command, but I have no idea how to save changes.
    Any help?
    Last edited by Raccoon1400 (2008-04-19 16:25:55)

    http://wiki.archlinux.org/index.php/Vi#How_to_exit_vim

  • [SOLVED]Can't edit .desktop files with Gnome 3. Application disappears

    I've been trying to edit the desktop file for gimp so that I can run a custom command when it loads.
    Basically I want to run GTK_MODULES= gimp instead of just straight gimp, because the global menu doesn't work well with gimp and running it in this way forces gimp to use the normal menus.
    As soon as I edit the file, gimp disappears from my applications menu. If I click on the .desktop file through nautilus, it says there is a problem and it cannot run the application. I'm not sure how to open a .desktop file from the terminal, so I can't look for more specific error messages.
    I tried creating a script and pointing the desktop file to that instead, and I tried using GTK_MODULES= && gimp, but both give the same problem. As soon as I click save, it becomes unusable, only fixable by reinstalling gimp.
    Do you think it's possible to do what I'm wanting to do?
    Last edited by themusicalduck (2011-12-23 22:33:06)

    GERGE wrote:Try to use alacarte. It works well for this.
    That worked perfectly! Thanks very much.

  • How to open and edit "*.txt" file with "Notepad"

    Hello guys!
    I'm facing problem with SharePoint 2010 Enterprise and got no clue how to solve it.
    What I want to do is to open "*.txt" (which is placed to "Documents Library") in "Notepad", so I could edit it and save (publish) directly to SharePoint from "Notepad".
    If I upload any Microsoft office File, such as "*.docx", "*.xls", etc - it works as it should - document opens in appropriate application and everybody is happy.
    But, when I create documents library, put some "*.txt" file there and click on it - it opens in new browser's tab as text, so I cannot edit the file.
    What I tried to do is to activate feature "Open Documents in Client Applications by Default" - not happy.
    Edit "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\XML\DOCICON.XML" - I've modified "txt" entry as follows:
    <?xml version="1.0" encoding="utf-8"?>
    <DocIcons>
        <ByProgID>
        </ByProgID>
        <ByExtension>
    <Mapping Key="txt" Value="ictxt.gif" EditText="Notepad" OpenControl="SharePoint.OpenDocuments"/>
        </ByExtension>
        <Default>
            <Mapping Value="icgen.gif"/>
        </Default>
    </DocIcons>
    Still not happy.
    So, how do I make this stuff work?

    Found this link which has more information on this scenario:
    http://sharepoint.stackexchange.com/questions/1427/open-txt-file-in-notepad-from-sharepoint
    A programmatic workaround:
    http://weblogs.asp.net/bsimser/archive/2005/01/24/359911.aspx
    Andrew Milsark, MCITP,MCTS
    Fpweb.net - The SharePoint Hosting Pioneer
    Blog : http://blog.fpweb.net
    Twitter : http://www.twitter.com/amilsark

  • Unable to edit XLSM files in SharePoint using hyperlink?

    Hi All,
    Unable to edit .xlsm files using hyperlink, please guide me.
    Thanks
    Ramanjulu Naidu N

    Hi Ramanjulu,
    Did this happen to all users?
    Did the "Read Only/Edit" dialog pop up when you click the .xlsm Name link from SharePoint 2010?
    Could you see the yellow message bar with "Edit Workbook" button when you open the .xlsm file in your Excel Application?
    You can check if the following kb article could solve yellow message bar missing problem, set "Browser File Handling" as Permissive for your web application, or update the registry for client Office application.
    Also check if the add-on "SharePoint OpenDocuments Class" is enabled in your IE 32-bit browser.
    http://support.microsoft.com/kb/2661910
    Thanks
    We are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • I can no longer open torrent files with transmission without downloading them; I could do this easily before the most recent update, how do I make this right??

    I tried to get a torrent file today, normally I tell firefox to open with transmission, today it wasn't an option. I tried to go to preferences and change it there but torrent files weren't even an option. Yesterday it worked fine, but after last nights update I can't get it to work at all.

    Similar problem here. My Ical refuses to edit or delete events. Viewing is possible, though sometimes the whole screen turns grey. Adding new events from mail is still possible. The task-pane completely disappeared. My local apple technic-centre messed about with disk utility for a bit and than told me to reinstall leopard. I could of course do that, but it seems to me that reinstalling Leopard just to fix iCal events is a bit invasive.
    I tried also tried removing everything, installing a new copy of iCal from the leopard-cd, software updates, all to no avail.
    At the moment I'm open to all suggestions that do not include a complete leopard reinstall.

  • Using Bash script to edit config file

    This is a really simple question, but given that I'm just learning Bash scripting and having this solved now would be really illustrative for me, I would really thank some help here.
    I'm using uzbl, and running Tor+Polipo. So, as you will see below in the tail of the config file, there is a line to redirect the requests of uzbl through Polipo.
    # === Post-load misc commands ================================================
    sync_spawn_exec @scripts_dir/load_cookies.sh
    sync_spawn_exec @scripts_dir/load_cookies.sh @data_home/uzbl/session-cookies.txt
    # Set the "home" page.
    #set uri = https://duckduckgo.com
    # Local polipo proxy
    set proxy_url = http://127.0.0.1:8123
    # vim: set fdm=syntax:
    What I want to accomplish is to comment in/out that line with a key shortcut on Awesome. I've thought of doing 2 scripts to do so and using 2 differente key shortcuts, but I want to "toggle" the proxy redirection with only 1 shortcut. To do so, I suppose that the script should go something like:
    if
    tool 'set proxy_url = http://127.0.0.1:8123' config_file
    then
    tool '#set proxy_url = http://127.0.0.1:8123' config_file
    else
    if
    tool '#set proxy_url = http://127.0.0.1:8123' config_file
    then
    tool 'set proxy_url = http://127.0.0.1:8123' config_file
    fi
    fi
    I know little about sed, but I think is the tool for this job. The most intriging part to me is to ask sed to print the regular expression when it finds it in the config file, and use that as an input in the conditional statement.
    Well, this is a mess I have done here. Hope there is a simple answer to this.
    Thanks in advance.-

    You can do this with a single sed command:
    sed -i 's/^#set proxy_url/set proxy_url/;
    t end;
    s/^set proxy_url/#set proxy_url/;
    : end' config_file
    This edits the file in-place (-i) and first tries to replace the commented with the uncommented line. If that suceeds, sed jumps to the "end" label. If not, it tries to replace the uncommented with the commented line. Thus you don't have to include any logic about the current state: if the first substitution succeeds, the line was obviously commented, if not, it was uncommented, and the second substitution should succeed.
    Note that my knowledge of sed is very limited. There might be a simpler way to do this.
    EDIT: For the sake of example, here's how to do the same in bash using regular expressions. Note how this script needs to use a temporary file to simulate in-place editing, how it needs to process the file line by line manually, etc. All things that sed does out of the box...
    #!/bin/bash
    tmp=test.conf.tmp
    echo -n "" > "$tmp"
    while read line; do
    if [[ "$line" =~ ^#set\ proxy ]]; then
    echo "${line/\#/}" >> "$tmp"
    elif [[ "$line" =~ ^set\ proxy ]]; then
    echo "#$line" >> "$tmp"
    else
    echo "$line" >> "$tmp"
    fi
    done < test.conf
    mv test.conf.tmp test.conf
    To answer your original question, the line
    if [[ "$line" =~ ^#set\ proxy ]]; then
    reads: if the line begins with a "#", followed by "set proxy", then...
    Last edited by hbekel (2011-03-20 10:40:16)

  • Using Oracle "Import PDF" Extension in Open Office Draw to Edit pdf Files

    I am a fairly new Mac user with OS X 10.6. For several months, I have been trying to find something which would edit pdf files better than Preview does (for example, the content of a text box in Preview can only be "center aligned"). Skim and FormulatePro were two options I tried that were improvements over Preview in many respects, but wouldn't let me paste an image onto my pdf (such as, for example, if I wanted to put my digital signature on a document).
    Then, I "discovered" the Oracle PDF Import Extension which I had installed in Open Office months ago, but hadn't really used. By "discovered," I mean I read on somebody's blog that you could use Open Office Draw to edit pdf files and I thought, "Hey, I wonder if that would work with my setup." (Boy, do I feel stupid.)
    I have just started using this functionality, but in just an hour or so of playing around, I have found that it has far exceeded my expectations and, even, my immediate needs. Besides giving you (a) all the control over text and text boxes that you would expect from, say, a word processing program and (b) allowing you to paste images onto your pdf, Open Office Draw also includes layers!
    The layer function threw me off for a bit, because, at first, I kept finding that my attempts to edit the document resulted in grabbing the raster image and moving it "off" of the underlying text layer (a function, I will admit, that I think will be worth exploiting someday, but wasn't what I was looking for at the moment). Then, I discovered that you can "lock" the layer so as to prevent this annoying occurrence. To create your edits, simply create a new layer (call it "MyEdits" or whatever you want) and you're in business.
    Anybody who has done anything more than drawn a couple of lines and boxes on a page has discovered that editing the overlapping objects can be a real pain - if not an outright impossibility. Separating these overlapping objects through the use of different layers solves the problem.
    The only downside to the use of Open Office Draw as a pdf editing tool that I can see is that you must import the pdf, save your edits in odg format, and then export it to pdf when you're done. I know that we would all like to have the capability of doing everything I just described directly to the native document, but, hey, for all the functionality I have been searching the internet for weeks to find, I think it's a reasonable trade off.

    Try turning off protected mode.

  • LR hangs when after editing .tif image try to edit .NEF file

    LR CC Trial hang ups after:
    Open LR CC
    Edit .tif file created by PS CC trial
    Go back to the grid of thumbnails
    Edit (try) a .NEF
    I am working with a catalog ex LR 5.4
    This is the four time in a row that happens this. Both photos are "normal" files (neither smart preview nor virtual copy).
    As a side observation. The CC application starter shows "0 days remaining"!! Which is not possible because LR CC was released few days ago. However, in the LR screen shot above, it says "29 days left..."
    I have tried disabling my antivirus software (ESET Smart Security v8) without success.
    Solved!
    PS CC hang up and during restarting it told me it was because a Graphic Card error, and it has disabled it. I have disabled the Graphic Card, also in LR, and I am not having problems so far.
    Regards.
    Oscar

    Hi,
    Next time you encounter similar problem, please check that that the space bar is not stuck. Also verify that hand tool is active even if any other tool is selected.
    Space bar is a shortcut for Hand tool any time with any tool active.
    Hope this solves your problem.
    Thanks,
    Swarnima

  • Is it dangerous to edit DNG-files with different programs?

    Hi there,
    does anybody know if problems/damages appear, if i manage the same DNG-file in ACR and Aperture like rebuilt the embedded preview?
    Aperture is designed to do nothing at th master file, but if I open a DNG-file in ACR (Adobe Camera RAW) to update the preview to see them in correct in the Finder and iView, I‘m not sure if that’s good for Aperture?
    Greets Frank

    Hi!
    You can edit any .html file in Notepad by right-clicking on the file and clicking '''Open With...'''
    When you're done editing, just save the file in Notepad. Then you can launch Firefox, go to the Menu, and then click "Open File". Choose your .html file and it will launch in Firefox. If you edit the file and then save, you just have to refresh the page in Firefox to see your changes.
    <hr>
    I hope that solved your problem!
    <i>If it did, would you please choose this answer as your solution? It would help other Firefox users to find help on the forums faster and more efficiently. Thanks!</i>
    And of course, feel free to post back if you need more help!
    Happy browsing!

  • Using FCE 4 to edit mov file, inserted 8 chapter markers by double tap M, enter title, click add chapter marker.  Rendered and half of the chapter markers unrecognized or not functional.  Delete FCE prefs and redo project did not help.  How to fix?

    Using FCE 4 to edit mov file.  Added 8 chapter markers by double tap M, enter title, click add chapter marker.  Rendered and 4 of the chapter markers are skipped or not functioning.  Deleting FCE prefs and rebuild project did not solve.  Solution anyone? 

    Thanks for taking a look, I am pretty new on a Mac, is this the data you need?

  • Edited video file name now cant open in other programs

    Opened a MPEG video file in HP MediaSmart video Main program and edited the file name. Now when I try to open the file it will not open in Windows Media player or my other video edit/programs.  I did not make a copy of the file or do I have a backup, it's the original.  How can I fix this?

    @Goonies_2015 ,
    Hello and thank you for posting on the HP support forums.  What I expect you have done when doing the change to the file and saving you ended up removing the .avi or .mpg file extension.
    So what you can try is to go to the file where ever it is located.  Copy the file then paste it.  Then rename the file whateveryouwant.avi or .mpg.  If this does not work then you may have edited it and saved the blank formatted file with no extension.  If that is the case I am not sure if you can recover it.
    Here are some links you can check out.
    How to Change a File Extension in Windows How to Recover Deleted Videos  
    Now the two links may not be exactly what you need but may have the answer when it comes to recovering video files.
    Thank you again for posting and have a great day.
    Please click the "Thumbs Up" on the bottom right of this post to say thank you if you appreciate the support I provide!
    Also be sure to mark my post as “Accept as Solution" if you feel my post solved your issue, it will help others who face the same challenge find the same solution.
    D5GR
    I work on behalf of HP

  • How to edit host file...

    I have ICS on my SK17i  . I want to edit my /etc/host file. How  is it possible.
    Solved!
    Go to Solution.

    Since host file is a system file
    You need to root your phone and then use root explorer > mount R/W > open with text editor
    May i know what actually you want to do ?
    Why do you want to edit host file ?
    Discussion guidelines.
    Message me or any other moderator to seek help regarding moderation.

Maybe you are looking for

  • Need assistance in Hyperion Web Analysis Report

    Hi All, I am using HFM with Oracle database as the data source for reports and using Hyperion 931 components. I have a requirement in Key Performance Indicators reports (KPI) 1) Need to have a custom column of current year Actuals Vs Plan data 2) Nee

  • Hardware Migration from one server to another server

    Hi All, We require more information pertaining to hardware migration from one server to another server without changing OS & DB. We are preparing installation guideline document for the same. Has anybody came across similar scenario?. Any pointers on

  • Blackberry Travel keeps sending me notifications for travel not my own (2 or 3 a day or more).

    Blackberry Travel keeps sending me notifications for travel not my own (2 or 3 a day or more).

  • Office Jet Pro 8000 - Feed problems

    Our officejet pro 8000 has just decided to stop feeding paper, whether I have 10 sheets or 50 sheets inserted it wont feed. It just makes a clicking sound, not so much a grinding sounbd, definatly a clicking sound. On inspection it looks like a cog m

  • I can't load a live form saved on PC.

    Have tried emailing the form, transferring through the Dropbox app and traspnsferring through Safari from Dropbox site.  App's not useful if I can't transfer forms.  Otherwise I'll delete it and use iAnnotate.