GithubHelp home page GithubHelp logo

torrentinfo's Introduction

torrentinfo Bulid Status

torrentinfo parses .torrent files and displays information about the torrent and the files that it references.

You can find the documentation at http://fuuzetsu.co.uk/torrentinfo

torrentinfo's People

Contributors

fuuzetsu avatar sbraz avatar

Stargazers

 avatar TROLLACRG avatar С. С. Болоканаръ avatar pancho horrillo avatar ‮noisawe avatar Chinggis Tenger avatar Daniel M. Weeks avatar  avatar  avatar Stéphan Gorget avatar  avatar Yield avatar Kendrick Von Ledet avatar Vrai Stacey avatar

Watchers

Vrai Stacey avatar James Cloos avatar  avatar  avatar networkelements avatar  avatar  avatar

Forkers

vicgc sbraz

torrentinfo's Issues

test_list_files_multi fails with python-3.3.2

======================================================================
FAIL: test_list_files_multi (tests.CommandLineOutputTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/package-manager/tmp/portage/net-p2p/torrentinfo-1.8.6/work/torrentinfo-1.8.6/test/tests.py", line 609, in test_list_files_multi
    self.assertEqual(self.out.getvalue(), return_string)
AssertionError: 'multi_bytes.torrent\n    files    \n        0\n            length    \n         [truncated]... != 'multi_bytes.torrent\n    files    \n        0\n            path    \n           [truncated]...
  multi_bytes.torrent
      files    
          0
+             path    
+                 megabyte
              length    
                  1048576
+         1
              path    
-                 megabyte
+                 two_megabytes
?                 ++++        +
-         1
              length    
                  2097152
-             path    
-                 two_megabytes
      piece length    
              262144
      pieces    
              [240 UTF-8 Bytes]



----------------------------------------------------------------------
Ran 87 tests in 0.549s

FAILED (failures=1)

Restore ability to show all torrent info

Docs from http://people.bath.ac.uk/mk440//torrentinfo/ tell 'Additionally the entire torrent can be shown in hierachical form.', it is valid for torrentinfo-1.0.2, but not for torrentinfo-1.6.0.

When using --dump torrentinfo-1.6.0 shows only:

    files
    piece length
    pieces

but torrentinfo-1.0.2 shows:

    announce
    announce-list
    comment
    created by
    creation date
    encoding
    info
        files
        name
        piece length
        pieces
    publisher
    publisher-url

For me it is major regression, please fix.

Wonky printable string detection

Currently some unicode will be displayed in its [X UTF-8 Bytes] form even though we could print it out just fine and other times it will print just fine. The alternatives are
• going back to the original way where everything but ASCII is printed this way
• print everything which would probably be the best if not for printing file pieces
• print everything but special-case printing file pieces

Most likely will go for the last option.

Timezone in 'created on'

Original torrentinfo-1.0.2 shows timezone in 'created on'

-    created on     2010/05/18 04:52:12 MSK
+    created on     2010/05/18 04:52:12

calculate hash

Please add flag for calculating hash. Not sure if hash should be in default output.

Show more info

I compared output of '-e' with output from transmission-show, seems like 'Print everything we can about the torrent' is not true yet:

  1. 'Hash:' is missing
  2. 'Privacy: (Public or private torrent)' is missing

Please add these 2 lines and comment line also to default output. It is useful to open url from comment in browser or search torrent hash.

unicode is broken with python3

Version 1.8.3 is not able to show unicode correctly when built with python-3.2. But works fine for same torrent file in other system where only python-2.7 is installed. If you have problem with reproducing, i will provide more info about systems.

P.S. Why it did not fail tests?

remove nose

Hi,

could you please consider to remove dependency on deprecated nose? Tests run just fine with pytest for example.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.