Coder Social home page Coder Social logo

pyrescene's People

Contributors

dguglielmi avatar emargee avatar heeaad avatar hrxcodes avatar hurda avatar itzoke avatar jarrydpage avatar pyrescene avatar venompie 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

Watchers

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

pyrescene's Issues

The -z switch to point to a directory with RAR executables does not work on Linux

Steps to reproduce:

  1. Have a directory prepared by preprardir.py with Linux RAR executables - e.g.:
1997-12-29_rar202
1999-03-24_rar250
1999-10-18_rar260
2000-06-21_rar271
2001-03-02_rar280
2001-09-07_rar290
2002-05-15_rar300
2002-12-19_rar310
2003-01-15_rar311
2003-05-16_rar320
2004-01-23_rar330
2004-09-09_rar340
2004-11-03_rar341
2005-08-04_rar350
2005-10-07_rar351
2006-08-05_rar360
2007-05-22_rar370
2007-09-20_rar371
2008-09-17_rar380
2009-08-16_rar390
2009-12-12_rar391
2010-02-11_rar392
2010-03-15_rar393
2011-03-02_rar400
2011-05-29_rar401
2012-01-10_rar410
2012-02-18_rar411
2012-06-09_rar420
rarreg.key
  1. Run srr -z /home/$USER/Directory_with_Linux_binaries <FILE>.srr
  2. You will get an error:
SRR file created with pyReScene Auto 0.7.
Traceback (most recent call last):
  File "/home/$USER/.local/lib/python3.6/site-packages/rescene/srr.py", line 602, in main
    parser.exit(manage_srr(options, infolder, infiles, working_dir))
  File "/home/$USER/.local/lib/python3.6/site-packages/rescene/srr.py", line 316, in manage_srr
    options.volume is None, options.volume, rar_mt)
  File "/home/$USER/.local/lib/python3.6/site-packages/rescene/main.py", line 1323, in reconstruct
    in_folder, hints, auto_locate_renamed)
  File "/home/$USER/.local/lib/python3.6/site-packages/rescene/main.py", line 1712, in get_rar_data_object
    auto_locate_renamed))
  File "/home/$USER/.local/lib/python3.6/site-packages/rescene/main.py", line 2024, in compressed_rar_file_factory
    nblock, followup_src, solid=False)
  File "/home/$USER/.local/lib/python3.6/site-packages/rescene/main.py", line 2149, in __init__
    first_block, blocks, thread_count)
  File "/home/$USER/.local/lib/python3.6/site-packages/rescene/main.py", line 2395, in search_matching_rar_executable
    if rar.supports_setting_threads():
  File "/home/$USER/.local/lib/python3.6/site-packages/rescene/main.py", line 1795, in supports_setting_threads
    p = custom_popen([self.path()])
  File "/home/$USER/.local/lib/python3.6/site-packages/rescene/main.py", line 2779, in custom_popen
    creationflags=creationflags)
  File "/usr/lib64/python3.6/subprocess.py", line 729, in __init__
    restore_signals, start_new_session)
  File "/usr/lib64/python3.6/subprocess.py", line 1364, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: '/home/$USER/Directory_with_Linux_binaries/2012-06-09_rar420': '/home/$USER/Directory_with_Linux_binaries/2012-06-09_rar420'
Re-creating RAR file: <FILE>.rar
Trying to rebuild compressed file <FILE>.sub.
Grabbing large enough data piece size for testing.
Trying 2012-06-09 4.20.
Unexpected Error: [Errno 2] No such file or directory: '/home/$USER/Directory_with_Linux_binaries/2012-06-09_rar420': '/home/$USER/Directory_with_Linux_binaries/2012-06-09_rar420'%                

Unable to recreate sub files (rar)

Hi. Sorry I'm not sure if this is an 'issue' or a lack of documentation or an inability by me to find the correct documentation or...
I'm unable to find any instructions on how to re-create the subtitle rar file.

In the help and the doc and random searches online, it only seems to show the flags I need in order to generate the subtitle srr files, using -v or --vobsub-srr.

However I don't see anything telling me how to go the other way. I have the extracted .sub and .idx files, but can't figure out how to use the sub srr file to generate the rar.

I tried to simply run srr.py on the sub.srr file, but the best it seems to do is generate a languages.diz file. But it won't reconstruct the rar file (properly).
I also tried pyrescene.py but can't get close with that.

I can't tell if I'm doing something wrong, or if there's a problem with re-generating subtitle rar files -- maybe it's just not supported?
But then why would there be documentation for creating the subtitle srr files if there's no way to reconstruct?

Sorry to bother. And thanks for any help.

Can't rebuild RELOADED release

Hi all,

I'm trying to rebuild Splinter.Cell.Chaos.Theory-RELOADED but none of the RAR versions (184 version tried) match the packer that RELOADED used.
I read that RELOADED used some kind of custom packer and that this issue has been resolved in 2016 (https://bitbucket.org/Gfy/pyrescene/issues/107/hi2u-and-reloaded-rar-files).
Is there any flag that forces pyRescene to try the RELOADED modifications while testing for a compatible RAR version?
I saw in the source code that it was tested with Street.Fighter.V-RELOADED, which was released 10 years after Splinter.Cell.Chaos.Theory-RELOADED - so I hoped that Splinter Cell won't be an issue.
I am using the latest commit as of this writing and I currently don't know what to do from here :(

Request to release 0.8

There have been a number of commits since 0.7, but most notable for me is 0f72c46 which helps with using retag on modern python3 implementations.

Would you be prepared to release 0.8 so that the PyPI page picks up the release and it can easily be installed with pip?

Thanks in advance, and thanks for making pyrescene.

Can't rebuild release even with good RAR version

I'm trying to rebuild Sega_Rally_v2_EUR_PSP-PLAYASiA, got a matching ISO and the latest pyRescene (as of November 20th).
But I always get the following error - any ideas?

`C:\pyReScene\bin\windows>pysrr.bat "E:\tmp\Sega Rally srr\Sega_Rally_v2_EUR_PSP-PLAYASiA.srr" -ypri "E:\tmp\Sega Rally srr\work" -o "E:\tmp\Sega Rally srr\Sega_Rally_v2_EUR_PSP-PLAYASiA" -z C:\Users\iCEQB\Desktop\srrgui-1.3\RARTRY\ -t "E:\tmp\Sega Rally srr\temp"
SRR file created with pyReScene Auto 0.4.
Re-creating stored file: pa-segarl2.nfo
Re-creating stored file: pa-segarl2.sfv
Re-creating RAR file: pa-segarl2.rar
Trying to rebuild compressed file pa-segarl2.iso.
Grabbing large enough data piece size for testing.
Trying 2012-06-09 4.20.
Good RAR version detected: 2012-06-09 4.20
C:\Users\iCEQB\Desktop\srrgui-1.3\RARTRY\2012-06-09_rar420.exe a -m5 -mdG -s- -ds -mt1 -vn -o+ -ep -idcd -v22564569b E:\tmp\Sega Rally srr\temp\SRR-n_yj3r4y\pyReScene_com
pressed.rar E:\tmp\Sega Rally srr\work\pa-segarl2.iso
Compressing pa-segarl2.iso...

Evaluation copy. Please register.

Creating archive E:\tmp\Sega Rally srr\temp\SRR-n_yj3r4y\pyReScene_compressed.rar

Adding E:\tmp\Sega Rally srr\work\pa-segarl2.iso
Calculating the control sum

Creating archive E:\tmp\Sega Rally srr\temp\SRR-n_yj3r4y\pyReScene_compressed.r00

... pa-segarl2.iso
Calculating the control sum

Creating archive E:\tmp\Sega Rally srr\temp\SRR-n_yj3r4y\pyReScene_compressed.r01

... pa-segarl2.iso
Calculating the control sum

Creating archive E:\tmp\Sega Rally srr\temp\SRR-n_yj3r4y\pyReScene_compressed.r02

... pa-segarl2.iso
Calculating the control sum

Creating archive E:\tmp\Sega Rally srr\temp\SRR-n_yj3r4y\pyReScene_compressed.r03

... pa-segarl2.iso
Calculating the control sum

Creating archive E:\tmp\Sega Rally srr\temp\SRR-n_yj3r4y\pyReScene_compressed.r04

... pa-segarl2.iso
Calculating the control sum

Creating archive E:\tmp\Sega Rally srr\temp\SRR-n_yj3r4y\pyReScene_compressed.r05

... pa-segarl2.iso
Calculating the control sum

Creating archive E:\tmp\Sega Rally srr\temp\SRR-n_yj3r4y\pyReScene_compressed.r06

... pa-segarl2.iso OK
Calculating the control sum
160199729
160199984
Still not fine :(.
Traceback (most recent call last):
File "C:\pyReScene\rescene\srr.py", line 605, in main
parser.exit(manage_srr(options, infolder, infiles, working_dir))
File "C:\pyReScene\rescene\srr.py", line 319, in manage_srr
options.volume is None, options.volume, rar_mt)
File "C:\pyReScene\rescene\main.py", line 1332, in reconstruct
in_folder, hints, auto_locate_renamed)
File "C:\pyReScene\rescene\main.py", line 1722, in get_rar_data_object
auto_locate_renamed))
File "C:\pyReScene\rescene\main.py", line 2044, in compressed_rar_file_factory
nblock, followup_src, solid=False)
File "C:\pyReScene\rescene\main.py", line 2237, in init
raise ValueError("Still not fine :(.")
ValueError: Still not fine :(.
Unexpected Error: Still not fine :(.
C:\pyReScene\bin\windows>`

TypeError: expected str, bytes or os.PathLike object, not NoneType

Traceback (most recent call last):
  File "/usr/local/bin/pyrescene.py", line 1823, in <module>
    sys.exit(main())
             ^^^^^^
  File "/usr/local/bin/pyrescene.py", line 1722, in main
    result = generate_srr(release_dir, working_dir,
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/bin/pyrescene.py", line 1124, in generate_srr
    if options.vobsub_srr and not unrar_is_available():
                                  ^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/bin/pyrescene.py", line 130, in unrar_is_available
    return os.path.isfile(os.path.abspath(get_unrar()))
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen posixpath>", line 399, in abspath
TypeError: expected str, bytes or os.PathLike object, not NoneType

Happens when using --best and unrar not being installed. Need aditional guarding.

"# these RARs contain cracked .exe files and are not wanted on srrdb.com"

(Similar sentiments to the below apply to the other 'blacklist' entries...)

For one, don't MOST scene release games contain cracked .exe's? I know for SURE you have tons of .SRRs for such releases there already.

Second, you don't want them on srrdb.com? Great. Handle it there, not in a toolset's code. Don't restrict what users can do... especially not via some simple strings in a blacklist. Handle it on the site side.

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.