srrdb / pyrescene Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Steps to reproduce:
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
srr -z /home/$USER/Directory_with_Linux_binaries <FILE>.srr
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'%
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.
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 :(
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.
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>`
DeprecationWarning: 'nntplib' is deprecated and slated for removal in Python 3.13
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.
(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.
DeprecationWarning: 'imghdr' is deprecated and slated for removal in Python 3.13
One path might be to use imagesize
package as described in sphinx-doc/sphinx#10440 (comment)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.