Question about a trading script - 13/04/12 04:09 AM
I'm using a trade script to transfer files between 2 FTP servers. Part of it is as follows:
Now, the problem is that on site1 the %rl = $2 is picking up a release including the 'TV+' part as the irc string is as follows:
TV+The.First.48.S12E10.720p.HDTV.x264-MOMENTUM
So when the release name is picked up, it looks for the complete string, not just the actual release name: The.First.48.S12E10.720p.HDTV.x264-MOMENTUM
How do I tell the script to ignore the 'TV+' part in the var %rl = $2 variable?
Quote:
if (720p.HDTV.x264-MOMENTUM isin $2) && (provide isin $5) {
var %section = TV
var %rl = $2
var %sourcename = site1
var %sourcedir = /tv-x264/
var %curryname = site2
var %currydir = /tv-x264/
var %section = TV
var %rl = $2
var %sourcename = site1
var %sourcedir = /tv-x264/
var %curryname = site2
var %currydir = /tv-x264/
Now, the problem is that on site1 the %rl = $2 is picking up a release including the 'TV+' part as the irc string is as follows:
TV+The.First.48.S12E10.720p.HDTV.x264-MOMENTUM
So when the release name is picked up, it looks for the complete string, not just the actual release name: The.First.48.S12E10.720p.HDTV.x264-MOMENTUM
How do I tell the script to ignore the 'TV+' part in the var %rl = $2 variable?