Page 1 of 2
Problem with deleted galleries
Posted: Mon Jul 24, 2017 9:14 am
by filthlab
Hi,
I have a problem with one of my gallery sources.
In daily updated feed I'm getting urls with Google utm codes, like this:
Code: Select all
https://www.redtube.com/2097968?utm_source=paid&utm_medium=hubtraffic&utm_campaign=hubtraffic_trafficready
But in the daily feed for deleted galleries I'm getting the urls without the utm codes, like this:
I suppose for the script the urls should be exact much.
Any idea how can I manage this?
Re: Problem with deleted galleries
Posted: Tue Jul 25, 2017 3:14 pm
by admin
Well, what comes up in my mind right now is to use a gate
1. create
http://yourserver/gate.php
2. this code should download that rss and add that tracking code to each line
3. in import sets add gate.php, not
http://tube/export.php
Re: Problem with deleted galleries
Posted: Tue Jul 25, 2017 3:43 pm
by filthlab
Good idea, thanks.
Re: Problem with deleted galleries
Posted: Sat Jul 29, 2017 9:07 am
by filthlab
Hi,
I've found another solution for this.
With Rotation Import Replacements:
If this field: Embed Code (I can use this, because generally I'm not importing "Embed Code" at all)
Contains this value: redtube.com
Then Search For: *
in This Field: URL
And Replace it With: external::
http://filthlab.com/scjbobi/redtube_del ... phase={URL}
Here is redtube_deleted.php:
Code: Select all
<?php
$utm = '&utm_source=paid&utm_medium=hubtraffic&utm_campaign=hubtraffic_trafficready';
echo $_GET['phase'] . $utm;
?>
But not sure if this is working properly. Any idea how can I check this?
Re: Problem with deleted galleries
Posted: Sat Jul 29, 2017 4:31 pm
by admin
But it will add extra &utc when you import galleries ..
Re: Problem with deleted galleries
Posted: Sun Jul 30, 2017 7:40 am
by filthlab
Like I mentioned before I'm not using Embed Code when I'm importing galleries. So, if there is no field "Embed Code" I suppose it will not add an extra &utc
Re: Problem with deleted galleries
Posted: Sun Jul 30, 2017 4:04 pm
by admin
If the field is empty then the rule won't be triggered ..
Re: Problem with deleted galleries
Posted: Mon Jul 31, 2017 12:24 pm
by filthlab
The field is not empty. In field "Embed Code" there is something like this:
<a title="Click to watch!" href="
https://www.redtube.com/2126870" title="" style="float:left; border:none; color:#FFF;"> <img src="
https://thumbs-cdn.redtube.com/m=eGcE8f ... nal/15.jpg" style="border:1px solid #fff; margin:5px;" width="160" height="120" alt="Watch for free!" /> </a> <div style="float:left; margin:5px; font-family:Tahoma, Geneva, sans-serif; font-size:13px;"> <p style="margin:0; padding:0;"><strong>Views:</strong> 28</p> <p style="margin:0; padding:0;"><strong>Rating:</strong> 3.67</p> <p style="margin:0; padding:0;"><strong>Duration:</strong> 3:14</p> </div>
It is not actually embed code, but I think this is ok for my purpose.
Can you tell me where is the log for deleted galleries? Is it in gallery_grabber.log. And do you have an idea how to filter just the records for deleted galleries?
Re: Problem with deleted galleries
Posted: Fri Aug 04, 2017 3:18 pm
by admin
rotation.log
I dont think it will work this way but it's free to try )
Re: Problem with deleted galleries
Posted: Mon Aug 14, 2017 7:46 am
by filthlab
What I should "grep" to see the lines with deleted galleries only?