Game PC: Difference between revisions

From Lundman Wiki
mNo edit summary
mNo edit summary
Line 1: Line 1:
=== Clomps-irc ===
== MediaInfo-RAR ==


A separate binary is compiled for the IRC Bot version of clomps. Clomps-irc connects to an IRC server(s), and sits in specified channel(s) to look for "New Release" notifications (or "Completion" messages depending on style).
Welcome to the MediaInfo-RAR utility page. This is just a small front-end to the famous and most excellent [http://mediainfo.sourceforge.net/en MediaInfo] program, which enables the feature to scan media in RAR archives. In addition to this, it now can handle ISO files, like that of DVDs and bluray in ISO form. Naturally, also ISO inside RAR archives. A new switch was added to let it list the contents of ISO files, so you can find the file you are interested in. By default, it will pick the largest file found.


To define an ircbot to listen to an irc server / irc channel, add the following line:


IRC | server=irc.server.com  | port=6667 | pass=ircpass | nick=clomps  | user=clomps@fxp.one | ssl=yes | channel=#bots ''|channel=#another''
IRC | server=irc.server2.com | port=6667 | pass=ircpass | nick=clomps2 | user=clomps@fxp.one | ssl=no  | channel=#spew


Optionals are ''port, pass, ssl''. Should we add fishkey?
[[mediainfo_rar_Example|Example]] output.


You need to defines the sites with SITE lines, for each one you intend to use. In this case, do '''not''' have a '''DIR=''' section.


SITE|NAME=ASite1|USESKIP=1|INCTEST=%s-(INCOMPLETE)|NUKETEST=NUKED-%s
SITE|NAME=glftpdsite|USESKIP=1|INCTEST=%s-(INCOMPLETE)|NUKETEST=NUKED-%s


=== Sources ===


Add a section:
[http://www.lundman.net/ftp/mediainfo-rar/mediainfo-rar-1.3.0.tar.gz mediainfo-rar-1.3.0.tar.gz] Sources for all platforms.


TRADE | NICK=(?i)thebot | MATCH=\[TV\] New Release: <.*?> (.*) | SRCSITE=ASite1 | SRCDIR=/tv | DSTSITE=glftpdsite | DSTDIR=/tv | ACCEPT=*simpsons* | REJECT=*FINSUB*


'''NICK=''' Is a Regular Expression (RE) match on the nick name. Clomps will ignore other nicks. Here "(?i)" is the PCRE for "case-insensitive", matching on nick "thebot".
'''MATCH''' is Regular Expression to match a release on. This does;


* Match only on section "TV" (Since RE started with "[TV]")
=== Binaries ===
* Match on new release message ("New Release", which could also be "Completed" or similar messages), to differentiate to "New racer, New SFV, or Halfway-through announces).
* Match and parse out the release name, ie "(.*)" and place it in "${releasename}". The part that is in parenthesis. This would unfortunately have to be tuned for each ircbot's output.
* If "${releasename}" passes the ACCEPT and REJECT rules, in this case "*simpsons* and *FINSUB*;


If you need to use "|" in your regex, enclose the whole "MATCH=re" in quotes
Win32 Windows 32 bit
  TRADE|NICK=Test|"MATCH=.*|New Release|.* (.*?)"|SRC...
[http://www.lundman.net/ftp/mediainfo-rar/mediainfo-rar.1.3.1-win32.zip mediainfo-rar-win32-1.3.1.zip] Windows command line executable, 32bit. (1.3.1 is to fix missing -s option for Windows build)
[http://www.lundman.net/ftp/mediainfo-rar/mediainfo-rar-win32-1.2.0.zip mediainfo-rar-win32-1.2.0.zip] Windows command line executable, 32bit.
  [http://www.lundman.net/ftp/mediainfo-rar/mediainfo-rar-win32-1.1.0.rar mediainfo-rar-win32-1.1.0.rar] Windows command line executable, 32bit.


If you wish to do groupings, like "(cat|dog)" use the non-capturing (). ie,  
Win64 Windows 64 bit
  (?:cat|dog)?
[http://www.lundman.net/ftp/mediainfo-rar/mediainfo-rar.1.3.1-win64.zip mediainfo-rar-win32-1.3.1.zip] Windows command line executable, 64bit.
which will match either "cat", or "dog".
  [http://www.lundman.net/ftp/mediainfo-rar/mediainfo-rar.1.3.0-win64.zip mediainfo-rar-win32-1.3.0.zip] Windows command line executable, 64bit.


Specify '''REQUEUE''' if you wish FXP.One to continue queueing the release until completed. (If incoming to src is slower than src->dst link).
OsX
  TRADE | NICK=(?i)thebot | MATCH=\[TV\] New Release: <.*?> (.*) | SRCSITE=ASite1 | SRCDIR=/tv | DSTSITE=glftpdsite | DSTDIR=/tv | ACCEPT=*simpsons* | REJECT=*FINSUB* | REQUEUE
[http://www.lundman.net/ftp/mediainfo-rar/mediainfo-rar-OsX-1.3.0.tar.gz mediainfo-rar-OsX-UB-1.3.0.tar.gz] OsX command line executable, (i386, x86_64).
  [http://www.lundman.net/ftp/mediainfo-rar/mediainfo-rar-OsX-1.2.0.tar.gz mediainfo-rar-OsX-UB-1.2.0.tar.gz] OsX command line executable, (i386, x86_64).
[http://www.lundman.net/ftp/mediainfo-rar/mediainfo-rar-OsX-UB-1.1.0.tar.gz mediainfo-rar-OsX-UB-1.1.0.tar.gz] OsX command line executable, Universal Binary (ppc, i386, x86_64).


NMT C200
[http://www.lundman.net/ftp/mediainfo-rar/mediainfo-rar-C200-1.1.0.tar.gz mediainfo-rar-C200-1.1.0.tar.gz] NetworkedMediaTank, x200 series, MIPS32


Linux x86
[http://www.lundman.net/ftp/mediainfo-rar/mediainfo-rar-Linux-x86-1.2.0.tar.gz mediainfo-rar-Linux-x86-1.2.0.tar.gz] Linux x86
[http://www.lundman.net/ftp/mediainfo-rar/mediainfo-rar-Linux-x86-1.1.0.tar.gz mediainfo-rar-Linux-x86-1.1.0.tar.gz] Linux x86


The release is then moved from SRCSITE:/SRCDIR/${releasename} -> DSTSITE:/DSTDIR/${releasename}
Linux x64
[http://www.lundman.net/ftp/mediainfo-rar/mediainfo-rar-Linux_x64-1.3.0.tar.gz mediainfo-rar-Linux-x64-1.3.0.tar.gz] Linux x64
[http://www.lundman.net/ftp/mediainfo-rar/mediainfo-rar-Linux_x64-1.2.0.tar.gz mediainfo-rar-Linux-x64-1.2.0.tar.gz] Linux x64
[http://www.lundman.net/ftp/mediainfo-rar/mediainfo-rar-Linux_x64-1.1.0.tar.gz mediainfo-rar-Linux-x64-1.1.0.tar.gz] Linux x64


Should we add SESSIONS=<int> as well? So clomps-irc can be told to limit the number of sessions? Some cases you only ever want to use SESSIONS=1, so all new releases are added to the end of currently active transfers.
Solaris x86
[http://www.lundman.net/ftp/mediainfo-rar/mediainfo-rar-Solaris-x86-1.1.0.tar.gz mediainfo-rar-Solaris-x86-1.1.0.tar.gz] Solaris x86


If we allow SESSIONS=2 or more, should we add balancing? round-robin? least-entries-in-queue?
=== Older Sources ===


[http://www.lundman.net/ftp/mediainfo-rar/mediainfo-rar-1.2.0.tar.gz mediainfo-rar-1.2.0.tar.gz] Sources for all platforms.
[http://www.lundman.net/ftp/mediainfo-rar/mediainfo-rar-1.1.0.tar.gz mediainfo-rar-1.1.0.tar.gz] Sources for all platforms.


If all you care about is moving Completed releases, you should do the IRC match on the "Completed" message. This means you will wait until it is finished before it starts to move it. So, no racing.


However, if you want to move it as fast as possible, and participate in the racing, you should match on the "New Release" message. You probably also want to use REQUEUE keyword to make it retry until complete. However, if the source uploading is slower than the clomps trading connection, it might give up in the middle of a release (and leave an incomplete, if nobody else is racing), if this is an issue, it is recommended that you set clomps to match and trigger on '''both''' "New Release" '''and''' "Completed" messages. This ensures one final queuing to complete the release.
=== Changelog ===
 
==== 1.3.0 ====
 
Added "-s" switch to show only the automatically picked "biggest file in archive" and not run MediaInfo.
Updated MediaInfoLib build version to 0.7.52
Windows mediainfo-rar build could not seek past 4GB boundary.
 
==== 1.2.0 ====
Added ISO support, using libdvdread-plus library
Added ISO in RAR support.
Added -l (--list) argument to list contents of ISO files.
 
==== 1.1.0 ====
 
First version. Make it identical in output to normal mediainfo

Revision as of 02:44, 12 March 2012

MediaInfo-RAR

Welcome to the MediaInfo-RAR utility page. This is just a small front-end to the famous and most excellent MediaInfo program, which enables the feature to scan media in RAR archives. In addition to this, it now can handle ISO files, like that of DVDs and bluray in ISO form. Naturally, also ISO inside RAR archives. A new switch was added to let it list the contents of ISO files, so you can find the file you are interested in. By default, it will pick the largest file found.


Example output.


Sources

mediainfo-rar-1.3.0.tar.gz Sources for all platforms.


Binaries

Win32 Windows 32 bit
mediainfo-rar-win32-1.3.1.zip Windows command line executable, 32bit. (1.3.1 is to fix missing -s option for Windows build)
mediainfo-rar-win32-1.2.0.zip Windows command line executable, 32bit.
mediainfo-rar-win32-1.1.0.rar Windows command line executable, 32bit.
Win64 Windows 64 bit
mediainfo-rar-win32-1.3.1.zip Windows command line executable, 64bit.
mediainfo-rar-win32-1.3.0.zip Windows command line executable, 64bit.
OsX
mediainfo-rar-OsX-UB-1.3.0.tar.gz OsX command line executable, (i386, x86_64).
mediainfo-rar-OsX-UB-1.2.0.tar.gz OsX command line executable, (i386, x86_64).
mediainfo-rar-OsX-UB-1.1.0.tar.gz OsX command line executable, Universal Binary (ppc, i386, x86_64).
NMT C200
mediainfo-rar-C200-1.1.0.tar.gz NetworkedMediaTank, x200 series, MIPS32
Linux x86
mediainfo-rar-Linux-x86-1.2.0.tar.gz Linux x86
mediainfo-rar-Linux-x86-1.1.0.tar.gz Linux x86
Linux x64
mediainfo-rar-Linux-x64-1.3.0.tar.gz Linux x64
mediainfo-rar-Linux-x64-1.2.0.tar.gz Linux x64
mediainfo-rar-Linux-x64-1.1.0.tar.gz Linux x64
Solaris x86
mediainfo-rar-Solaris-x86-1.1.0.tar.gz Solaris x86

Older Sources

mediainfo-rar-1.2.0.tar.gz Sources for all platforms.
mediainfo-rar-1.1.0.tar.gz Sources for all platforms.


Changelog

1.3.0

Added "-s" switch to show only the automatically picked "biggest file in archive" and not run MediaInfo.
Updated MediaInfoLib build version to 0.7.52
Windows mediainfo-rar build could not seek past 4GB boundary.

1.2.0

Added ISO support, using libdvdread-plus library
Added ISO in RAR support.
Added -l (--list) argument to list contents of ISO files.

1.1.0

First version. Make it identical in output to normal mediainfo