Problem with deleted galleries

filthlab
Posts: 118
Joined: Tue May 30, 2017 6:49 am

Problem with deleted galleries

Post 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:

Code: Select all

https://www.redtube.com/2097968
I suppose for the script the urls should be exact much.
Any idea how can I manage this?
admin
Site Admin
Posts: 37241
Joined: Wed Sep 10, 2008 11:43 am

Re: Problem with deleted galleries

Post 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
Don't forget to run script update
filthlab
Posts: 118
Joined: Tue May 30, 2017 6:49 am

Re: Problem with deleted galleries

Post by filthlab »

Good idea, thanks.
filthlab
Posts: 118
Joined: Tue May 30, 2017 6:49 am

Re: Problem with deleted galleries

Post 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?
admin
Site Admin
Posts: 37241
Joined: Wed Sep 10, 2008 11:43 am

Re: Problem with deleted galleries

Post by admin »

But it will add extra &utc when you import galleries ..
Don't forget to run script update
filthlab
Posts: 118
Joined: Tue May 30, 2017 6:49 am

Re: Problem with deleted galleries

Post 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
admin
Site Admin
Posts: 37241
Joined: Wed Sep 10, 2008 11:43 am

Re: Problem with deleted galleries

Post by admin »

If the field is empty then the rule won't be triggered ..
Don't forget to run script update
filthlab
Posts: 118
Joined: Tue May 30, 2017 6:49 am

Re: Problem with deleted galleries

Post 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?
admin
Site Admin
Posts: 37241
Joined: Wed Sep 10, 2008 11:43 am

Re: Problem with deleted galleries

Post by admin »

rotation.log
I dont think it will work this way but it's free to try )
Don't forget to run script update
filthlab
Posts: 118
Joined: Tue May 30, 2017 6:49 am

Re: Problem with deleted galleries

Post by filthlab »

What I should "grep" to see the lines with deleted galleries only?
Post Reply