Code Monkey home page Code Monkey logo

redbetter-crawler's Introduction

Introduction

  • Do not abuse automated site access.

All automated site access must be done through the API. API use is limited to 5 requests within any 10-second window. Scripts and other automated processes must not scrape the site's HTML pages."

Proceed at your own risk.


redactedbetter is a script which searches your torrent download directory for any FLAC torrents which do not have transcodes, then automatically transcodes and uploads the torrents to redacted.ch.

Installation

Dependencies

  • Python 2.7 or newer
  • mechanize, mutagen, and requests Python modules. You can install these with pip install -r requirements.txt. Depending on your user priveleges, you may need to use sudo, so try: sudo -H pip install -r requirements.txt
  • lame, sox, and flac. These should all be available on your package manager of choice:
    • Ubuntu: sudo apt install lame sox flac
    • macOS: brew install lame sox flac
  • mktorrent: Just installing it with a package manager won't do in this case. We need to build it from source, because otherwise an option that we need is not enabled. For Linux systems, run the following commands in a temporary directory:
$> git clone [email protected]:Rudde/mktorrent.git
$> cd mktorrent
$> make && sudo make install

If you are on a seedbox and you lack the privileges to install packages, you are best off contacting your seedbox provider and asking them to install the listed packages.

Configuration

Run redactedbetter by running the script included when you cloned the repository:

$> ./redactedbetter

You will receive a notification stating that you should edit the configuration file located at:

~/.redactedbetter/config

Open this file in your preferred text editor, and configure as desired. The options are as follows:

  • username: Your redacted.ch username.
  • password: Your redacted.ch password.
  • data_dir: The directory where your torrent downloads are stored.
  • output_dir: The directory where the transcoded torrent files will be stored. If left blank, it will use the value of data_dir.
  • torrent_dir: The directory where the generated .torrent files are stored.
  • formats: A comma space (, ) separated list of formats you'd like to transcode to. By default, this will be flac, v0, 320. flac is included because redactedbetter supports converting 24-bit FLAC to 16-bit FLAC. Note that v2 is not included deliberately - v0 torrents trump v2 torrents per redacted rules.
  • media: A comma space (, ) separated list of media types you want to consider for transcoding. The default value is all redacted lossless formats, but if you want to transcode only CD and vinyl media, for example, you would set this to cd, vinyl.
  • 24bit_behaviour: Defines what happens when the program encounters a FLAC that it thinks is 24-bit. If it is set to 2, every FLAC that has a bit depth of 24 will be silently re-categorized. If it is set to 1, a prompt wil appear. The default is 0 which ignores these occurrences.

Usage

usage: redactedbetter [-h] [-s] [-j THREADS] [--config CONFIG] [--cache CACHE]
                      [-U] [-E] [--version]
                      [release_urls [release_urls ...]]

positional arguments:
  release_urls          the URL where the release is located (default: None)

optional arguments:
  -h, --help            show this help message and exit
  -s, --single          only add one format per release (useful for getting
                        unique groups) (default: False)
  -j THREADS, --threads THREADS
                        number of threads to use when transcoding (default: 3)
  --config CONFIG       the location of the configuration file (default:
                        /home/taylor/.redactedbetter/config)
  --cache CACHE         the location of the cache (default:
                        /home/taylor/.redactedbetter/cache)
  -U, --no-upload       don't upload new torrents (in case you want to do it
                        manually) (default: False)
  -E, --no-24bit-edit   don't try to edit 24-bit torrents mistakenly labeled
                        as 16-bit (default: False)
  --version             show program's version number and exit

Examples

To transcode and upload everything you have in your download directory (it could take a while):

$> ./redactedbetter

To transcode and upload a specific release (provided you have already downloaded the FLAC and it is located in your data_dir):

$> ./redactedbetter http://redacted.ch/torrents.php?id=1000\&torrentid=1000000

Note that if you specify a particular release, redactedbetter will ignore your configuration's media types and attempt to transcode the releases you have specified regardless of their media type (so long as they are lossless types).

redactedbetter caches the results of your transcodes, and will skip any transcodes it believes it's already finished. This makes subsequent runs much faster than the first, especially with large download directories. However, if you do run into errors when running the script, sometimes you will find that the cache thinks the torrent it crashed on previously was uploaded - so it skips it. A solution would be to manually specify the release as mentioned above. If you have multiple issues like this, you can remove the cache:

$> ./redactedbetter ~/.redactedbetter/cache

Beware though, this will cause the script to re-check every download as it does on the first run.

Bugs and feature requests

If you have any issues using the script, or would like to suggest a feature, feel free to open an issue in the issue tracker, provided that you have searched for similar issues already.

redbetter-crawler's People

Contributors

alex-phillips avatar elskewe avatar elwoodpd avatar ghost avatar mathias-sm avatar mechazawa avatar milkyjoe avatar taylorthurlow avatar zacharydenton avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

redbetter-crawler's Issues

multichannel error?

Traceback (most recent call last):
  File "./redactedbetter", line 231, in <module>
    main()
  File "./redactedbetter", line 182, in main
    if transcode.is_multichannel(flac_dir):
  File "/home/gimp/REDBetter-crawler/transcode.py", line 102, in is_multichannel
    return any(flac.info.channels > 2 for flac in flacs)
  File "/home/gimp/REDBetter-crawler/transcode.py", line 102, in <genexpr>
    return any(flac.info.channels > 2 for flac in flacs)
  File "/home/gimp/REDBetter-crawler/transcode.py", line 101, in <genexpr>
    flacs = (mutagen.flac.FLAC(flac_file) for flac_file in locate(flac_dir, ext_matcher('.flac')))
  File "/usr/local/lib/python2.7/dist-packages/mutagen/_file.py", line 49, in __init__
    self.load(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/mutagen/_util.py", line 158, in wrapper
    return func(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/mutagen/_util.py", line 129, in wrapper
    return func(self, h, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/mutagen/flac.py", line 789, in load
    self.__check_header(fileobj, filething.name)
  File "/usr/local/lib/python2.7/dist-packages/mutagen/flac.py", line 904, in __check_header
    header = fileobj.read(4)
  File "/usr/local/lib/python2.7/dist-packages/mutagen/flac.py", line 70, in read
    size, len(data)))
mutagen.flac.error: file said 4 bytes, read 0 bytes

Can't Pickle

I've been bending over my computer trying to get this to work for the past three hours. I've reinstalled Python several times and downloaded all dependencies. My config works because What.CD correctly authenticates, but when the script attempts to transcode I get an error message like this:

Formats needed: 320, V2
Adding format 320... Error adding format 320: Can't pickle <function pool_initializer at 0x02CFB6F0>: it's not found as transcode.pool_initializer
Adding format V2... Error adding format V2: Can't pickle <function pool_initializer at 0x02FE1570>: it's not found as transcode.pool_initializer
Traceback (most recent call last):
File "", line 1, in
File "C:\Python27\lib\multiprocessing\forking.py", line 381, in main
self = load(from_parent)
File "C:\Python27\lib\pickle.py", line 1384, in load
return Unpickler(file).load()
File "C:\Python27\lib\pickle.py", line 864, in load
dispatchkey
File "C:\Python27\lib\pickle.py", line 886, in load_eof
raise EOFError
EOFError
Traceback (most recent call last):
File "", line 1, in
File "C:\Python27\lib\multiprocessing\forking.py", line 381, in main
self = load(from_parent)
File "C:\Python27\lib\pickle.py", line 1384, in load
return Unpickler(file).load()
File "C:\Python27\lib\pickle.py", line 864, in load
dispatchkey
File "C:\Python27\lib\pickle.py", line 886, in load_eof
raise EOFError
EOFError

My Python version is 2.7.11.
Thanks for any help!

Error adding format V0: 'module' object has no attribute 'ParseFile'

Hi there,

After getting my instance working I'm now getting the following upon finding a release

Release found: <snip>
Release URL: <snip>
Formats needed: V0, 320
Adding format V0... Error adding format V0: 'module' object has no attribute 'ParseFile'
Adding format 320... Error adding format 320: 'module' object has no attribute 'ParseFile'

I believe it to be the same as issues #9 and #10 and running

import mechanize
print mechanize.__version__, ', '.join(mechanize.__dict__.keys())

Gives me

>>> import mechanize
>>> print mechanize.__version__, ', '.join(mechanize.__dict__.keys())
(0, 3, 6, None, None) HTTPRedirectDebugProcessor, HTTPResponseDebugProcessor, absolute_import, HTTPRedirectHandler, __path__, HTTPEquivProcessor, HiddenControl, IgnoreControl, _debug, _http, HTTPDefaultErrorHandler, FormNotFoundError, Browser, HTTPSClientCertMgr, urljoin, _equiv, __file__, urlretrieve, OpenerDirector, Control, CheckboxControl, CacheFTPHandler, _html, HTTPDigestAuthHandler, TextareaControl, HTTPEquivParser, ImageControl, _urllib2_fork, _gzip, AmbiguityError, Label, _mechanize, AbstractBasicAuthHandler, _urllib2, DefaultCookiePolicy, __all__, LocateError, _clientcookie, RadioControl, urlopen, TextControl, Link, ScalarControl, HTTPSHandler, FTPHandler, _response, LinkNotFoundError, __builtins__, MozillaCookieJar, __name__, __version__, _entities, CookieJar, _version, BrowserStateError, ControlNotFoundError, LoadError, html5_entities, _useragent, CookiePolicy, _opener, install_opener, SubmitButtonControl, __loader__, request_host, OpenerFactory, Cookie, HTTPRefreshProcessor, HTTPErrorProcessor, __doc__, HTTPPasswordMgrWithDefaultRealm, _form_controls, HTTPRobotRulesProcessor, HTTPHandler, _util, SubmitControl, logging, str2time, HTTPError, HTTPCookieProcessor, History, HTTPGzipProcessor, UserAgentBase, HTTPBasicAuthHandler, FileCookieJar, UnknownHandler, effective_request_host, RobotExclusionError, FileControl, ProxyBasicAuthHandler, HTTPRefererProcessor, build_opener, USE_BARE_EXCEPT, HTMLForm, _request, ProxyHandler, PasswordControl, BaseHandler, lwp_cookie_str, Factory, _form, _headersutil, ListControl, ItemNotFoundError, ContentTooShortError, SelectControl, Missing, FileHandler, HTTPPasswordMgr, __package__, UserAgent, LWPCookieJar, _sockettimeout, URLError, _rfc3986, ProxyDigestAuthHandler, seek_wrapped_response, _auth, AbstractDigestAuthHandler, Request, Item, SeekableResponseOpener, make_response, HTTPProxyPasswordMgr, response_seek_wrapper, ItemCountError

Kind regards,
b3vis

build/install script installs package with incorrect name

Incorrect, or at least inconsistent with the readme, which states to use "whatbetter" to run the program. Actually, you need to use "whatbetter.py" to run it, which is a little confusing.

Relavant install script output:

Processing whatbetter-1.2-py2.7.egg
Copying whatbetter-1.2-py2.7.egg to /usr/lib/python2.7/site-packages
Adding whatbetter 1.2 to easy-install.pth file
Installing whatbetter.py script to /usr/bin

And after installing:

 ~]$ ls /usr/bin | grep whatbetter
whatbetter
whatbetter.py

The entry "whatbetter" was leftover from my previous version of the script I got off bitbucket, and "whatbetter.py" is this one.

Does this script still scrape in a disallowed manner?

The README states that this script breaks the Golden Rules. Is this still correct? If so, which of the interactions in this script are disallowed? Perhaps there could be a workaround (e.g. instead of scraping better.php, the user could download the better.php page and pass that as an input to this script). I can work on that if I know where the issue lies.

No config file or folder

Following README.md

alexander@archlabs ~ % ./redactedbetter
File "./redactedbetter", line 87
print 'Please edit the configuration file: %s' % args.config
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(print 'Please edit the configuration file: %s' % args.config)?

So after this there aren't any config file or folder generated.

Error when i try to run whatbetter

Last login: Tue Jun 28 20:33:53 2016 from 70.15.7.141
[briareus ~] ~/.local/bin/whatbetter
Logging in to What.CD...
Searching for transcode candidates...

Traceback (most recent call last):
File "/media/sdaj1/binaryc0de/.local/bin/whatbetter", line 4, in
import('pkg_resources').run_script('whatbetter==1.3', 'whatbetter')
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 534, in run_scr ipt
self.require(requires)[0].run_script(script_name, ns)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1445, in run_sc ript
exec(script_code, namespace, namespace)
File "/media/sdaj1/binaryc0de/.local/lib/python2.7/site-packages/whatbetter-1. 3-py2.7.egg/EGG-INFO/scripts/whatbetter", line 228, in

File "/media/sdaj1/binaryc0de/.local/lib/python2.7/site-packages/whatbetter-1. 3-py2.7.egg/EGG-INFO/scripts/whatbetter", line 140, in main

UnicodeEncodeError: 'ascii' codec can't encode characters in position 15-20: ord inal not in range(128)
[briareus ~] ~/.local/bin/whatbetter
Logging in to What.CD...
Searching for transcode candidates...

Traceback (most recent call last):
File "/media/sdaj1/binaryc0de/.local/bin/whatbetter", line 4, in
import('pkg_resources').run_script('whatbetter==1.3', 'whatbetter')
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 534, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1445, in run_script
exec(script_code, namespace, namespace)
File "/media/sdaj1/binaryc0de/.local/lib/python2.7/site-packages/whatbetter-1.3-py2.7.egg/EGG-INFO/scripts/whatbetter", line 228, in

File "/media/sdaj1/binaryc0de/.local/lib/python2.7/site-packages/whatbetter-1.3-py2.7.egg/EGG-INFO/scripts/whatbetter", line 140, in main

UnicodeEncodeError: 'ascii' codec can't encode characters in position 15-20: ordinal not in range(128)
[briareus ~]

Complete noob at linux/python so not sure what went wrong here

Scene tags are included in output directory names

When transcoding a scene release where the scene tag is in the original release's directory name, that scene tag will be included in the directory names of the transcodes.

Unfortunately this violates the rules, and any uploads created by this project that include the original release's scene tag will have to be reported/trumped

Adding format V0... Error adding format V0: no control matching name 'remaster'

I'm attempting to use REDBetter-crawler on a seedbox slot.

I installed dependencies using pip install -r requirements.txt --user

When the script performs a transcode to V0 or 320 (only options I'm using at the moment), it returns the error in the title.

Python version is 2.7.15

Full output:

phuzion@host ~/REDBetter-crawler $ ./redactedbetter https://redacted.ch/torrents.php?id=181199\&torrentid=329705
Logging in to RED...
Searching for transcode candidates...
You supplied one or more release URLs, ignoring your configuration's media types.

Release found: Super Eurobeat Vol. 114 (2001)
Release URL: https://redacted.ch/torrents.php?id=181199&torrentid=329705#torrent329705
Formats needed: V0, 320
Adding format V0... Error adding format V0: no control matching name 'remaster'
Adding format 320... Error adding format 320: no control matching name 'remaster'

Add support for 2fa/mfa

As the site heavily encourages multifactor, support for this (a quick prompt on the console for the number or something?) would be ideal.

search within data_dir for path

i don't keep my torrents unsorted in a ~/Music directory, they are sorted by ~/Music/Artist/Album and similar..
can you please make red crawler find the true file location, so i don't get so many 'Path not found' errors when i try to transcode :)

Error adding format V0: [Errno 2] No such file or directory

Keep getting the following error:

Release found: It’s So Different Here (1997)
Release URL: https://redacted.ch/torrents.php?id=73371&torrentid=128242#torrent128242
Formats needed: V0
Adding format V0... Error adding format V0: [Errno 2] No such file or directory

This is my config:

[whatcd]
username = SavageCore
password = ************
data_dir = /home/savagecore/torrents/deluge/completed/music
output_dir = /home/savagecore/torrents/deluge/completed/uploads/redbetter
torrent_dir = /home/savagecore/torrents/deluge/watch/uploads/redbetter
formats = flac, v0, 320
media = sacd, soundboard, web, dvd, cd, dat, vinyl, blu-ray
24bit_behaviour = 2

I'm at a total loss, any ideas?

mutagen.flac.FLACNoHeaderError: Stream info block not found

This has been working great for me so far, but I ran into this issue. Is there something wrong with the torrent data?

user@server460:~/scripts/pthbetter-crawler$ whatbetter --single
Logging in to PTH...
Searching for transcode candidates...

Release found: Re:Jacked Volume 2 (2010)
Release URL: https://redacted.ch/torrents.php?id=274578&torrentid=521887#torrent521887
Traceback (most recent call last):
  File "/home/user/scripts/pthbetter-crawler/whatbetter", line 231, in <module>
    main()
  File "/home/user/scripts/pthbetter-crawler/whatbetter", line 182, in main
    if transcode.is_multichannel(flac_dir):
  File "/home/user/scripts/pthbetter-crawler/transcode.py", line 102, in is_multichannel
    return any(flac.info.channels > 2 for flac in flacs)
  File "/home/user/scripts/pthbetter-crawler/transcode.py", line 102, in <genexpr>
    return any(flac.info.channels > 2 for flac in flacs)
  File "/home/user/scripts/pthbetter-crawler/transcode.py", line 101, in <genexpr>
    flacs = (mutagen.flac.FLAC(flac_file) for flac_file in locate(flac_dir, ext_matcher('.flac')))
  File "/home/user/.local/lib/python2.7/site-packages/mutagen/_file.py", line 49, in __init__
    self.load(*args, **kwargs)
  File "/home/user/.local/lib/python2.7/site-packages/mutagen/_util.py", line 158, in wrapper
    return func(*args, **kwargs)
  File "/home/user/.local/lib/python2.7/site-packages/mutagen/_util.py", line 129, in wrapper
    return func(self, h, *args, **kwargs)
  File "/home/user/.local/lib/python2.7/site-packages/mutagen/flac.py", line 796, in load
    raise FLACNoHeaderError("Stream info block not found")
mutagen.flac.FLACNoHeaderError: Stream info block not found

Getting session cookie failed errors.

I went into my chrome cookie settings and copied the session cookie from redacted. There doesn't seem to be any documentation anyhwere on where im even supposed to get the session cookie so this was my best guess. I'm getting session cookie failed and too many redirect errors when running redbetter.

Copy lineage for vinyl transcodes

Would it be possible to copy the lineage for vinyl transcodes and add an option to copy the original release info for the torrent transcoded for other media types? Even on transcodes, RED staff want to see the vinyl lineage and doing this prevents the torrent being reported and staff having to manually copy the linage info over from the original torrent.

Update for python3 compatibility

Eg.:
% ./redactedbetter
File "./redactedbetter", line 88
print 'Please edit the configuration file: %s' % args.config
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print('Please edit the configuration file: %s' % args.config)?

Error on conversion from FLAC to MP3

chris@adsfasdf:/mnt/c/Users/chris/Downloads/REDBetter-crawler$ ./redactedbetter "https://redacted.ch/torrents.php?id=12312312312&torrentid=123123123123"
Logging in to RED...
Searching for transcode candidates...
You supplied one or more release URLs, ignoring your configuration's media types.

Release found: dumbalbum (2019)
Release URL: https://redacted.ch/torrents.php?id=123123123&torrentid=12312312312#torrent123123123
Formats needed: V0, 320
Adding format V0... Error adding format V0: max() arg is an empty sequence
Adding format 320... Error adding format 320: max() arg is an empty sequence

Remove critical error for vinyl tracknumber tags

        tracknumber = info['tracknumber'][0]
        if not valid_fractional_tag(tracknumber):
            return (False, '"%s" has a malformed tracknumber tag ("%s")' % (filename, tracknumber))

We currently have this block dictating what is "acceptable" for tracknumber tags.

However, it does not account for vinyl releases. It has been long upheld that A1, B7, etc are acceptable tracknumber tags.

Perhaps this could be changed to simply be an info message, or be refined to allow tags such as "A1" or "C6/20".

In the very least we could have an option to ignore the error.

"Error adding format"

Getting this odd error when attempting to transcode 24bit FLACs to 16bit FLAC, v0 & 320;

Release found: Saratoga (1980)
Release URL: https://redacted.ch/torrents.php?id=770271&torrentid=1669158#torrent1669158
Formats needed: FLAC, V0, 320
Adding format FLAC... Error adding format FLAC: [Errno 2] No such file or directory
Adding format V0... Error adding format V0: [Errno 2] No such file or directory
Adding format 320... Error adding format 320: [Errno 2] No such file or directory

Any clue what could be causing this? It's odd because transcoding of 16bit FLAC to V0 & 320 works 100% fine.

Many thanks for maintaining this excellent script :)

Renaming "24bit FLAC folders"

Hi,

I really enjoy using pthbetter but my only issue is with 24 bit flacs.

Those are usually named like this [FLAC 24bit], [24bit FLAC] or [FLAC 24]. So when using pthbetter to transcode, output folders are like this [V0 24bit], [320 24bit],...

Is there a way to truncate folder name and remove those "24bit" tags on output folders ? It shouldn't be hard i guess but i really suck with python...

Thanx a lot for your help !!

Code borrowing

Hi,
I'm currently working on a RED related project and I need to use the API of RED.
Can I use the redactedapi.py file in my project ?
I'll, of course, mention your repo in this file.

Namespace error

Hi,

I'm attempting to create a docker image for this script using a small alpine linux base. I've had it running fine on Friday night after solving this namespace issue but for the life of me I cannot remember what I did. The error I'm getting is

/ # redactedbetter 
Traceback (most recent call last):
  File "/usr/bin/redactedbetter", line 4, in <module>
    __import__('pkg_resources').run_script('redactedbetter==1.3', 'redactedbetter')
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 739, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1501, in run_script
    exec(script_code, namespace, namespace)
  File "/usr/lib/python2.7/site-packages/redactedbetter-1.3-py2.7.egg/EGG-INFO/scripts/redactedbetter", line 231, in <module>
    
  File "/usr/lib/python2.7/site-packages/redactedbetter-1.3-py2.7.egg/EGG-INFO/scripts/redactedbetter", line 90, in main
    
  File "/usr/lib/python2.7/ConfigParser.py", line 607, in get
    raise NoSectionError(section)
ConfigParser.NoSectionError: No section: 'redacted'

I've done pip install ns and pip install namespace. I'm running the setup via python setup.py install

I'm sure it's something simple but I can't work it out myself!

Thanks,
b3vis

"no tracknumber tag" skipping

Some of the singles don't have tracknumber yet they are still eligible for transcode. Would you consider remove this limit?

Error When Running

I get the following error when I try to run:

t_raceback (most recent call last):
  File "/usr/local/bin/whatbetter", line 4, in <module>
    __import__('pkg_resources').run_script('whatbetter==1.2', 'whatbetter')
  File "/Library/Python/2.7/site-packages/pkg_resources/__init__.py", line 719, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/Library/Python/2.7/site-packages/pkg_resources/__init__.py", line 1512, in run_script
    exec(script_code, namespace, namespace)
  File "/Library/Python/2.7/site-packages/whatbetter-1.2-py2.7.egg/EGG-INFO/scripts/whatbetter", line 219, in <module>

  File "/Library/Python/2.7/site-packages/whatbetter-1.2-py2.7.egg/EGG-INFO/scripts/whatbetter", line 127, in main_

Sorry, I'm a complete idiot with things like this.

All torrents failing with "Unregistered Torrent"

When I re-download the torrent from RED, it works just fine. Unfortunately, this makes the system painfully hands on.

Here's a diff of the RED torrent and the one generated by this script (top is working):

xander@cryobank:~$ diff -a from_red.torrent from_pthbetter.torrent
18c18
< �|��K�8H(�jQؗ�
               T�3�~��Mq��
                          Ų�tr��I1��UU�q�7:privatei1e6:source3:REDee
\ No newline at end of file
---
> �|��K�8H(�jQؗ�
               T�3�~��Mq��
                          Ų�tr��I1��UU�q�7:privatei1eee
\ No newline at end of file

Is something wrong with my configuration? Is there a flag I can add to mktorrent that will fix this? Is it working for anyone else?

Create release

I'd recommend creating a release for the version it's currently in.

module object has no attribute parse file

Getting this error after running whatbetter. Successfully identifies transcodes and makes the transcodes. Fails on the upload.

Formats needed: V0, 320
Adding format V0... Error adding format V0: 'module' object has no attribute 'ParseFile

mktorrent encountering error

I installed the xanaxbetter port of whatbetter on my other seedbox and all went according to plan, but when I installed pthbetter, the script would happily crawl pth, transcode the file, and then fail once mktorrent tried to create the torrent file.

I've already checked to see that mktorrent is version 1.0 which works fine with xanaxbetter. Mktorrent is also in my PATH.

What am I missing?

Error message reproduced below:

Adding format V0... Error adding format V0: Command '['mktorrent', '-s', 'PTH', '-p', '-a', u'https://---.me/----/announce', '-o', "/tmp/tmpuT_1a7/Lil' Louis - French Kiss (1989) [V0] {FCD115, 886 675-2}.torrent", "/---/private/rtorrent/data/Lil' Louis - French Kiss (1989) [V0] {FCD115, 886 675-2}"]' returned non-zero exit status 1

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.