May 4, 2011

Request: Change "Must Be Newer Than" to Published Date for YouTube | CyberSEO Pro | Support Forum

Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_TopicIcon
Request: Change "Must Be Newer Than" to Published Date for YouTube
Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 (0 votes) 
April 17, 2025
3:30 am
Avatar
TheRiz
Member
Members
Forum Posts: 12
Member Since:
December 2, 2024
sp_UserOfflineSmall Offline

I'd like to humbly request an update to the "Must Be Newer Than" content filter setting. As it stands now it does not actually respect the "published" date from YouTube XML, but pulls the "last updated" date. This means content could be two years old but the thumbnail or something was updated, and it would pass as "within 1 day" should you try to filter that way.

My entire setup is based on fresh content. This one setting has caused me to spend hours trying to filter out posts that are outside of 24 hours for the publish date. This includes using the CyberSEO GPT code assistant to create pre-process filters or custom PHP filters. So far nothing has worked, as something with an old post date always slips through.

I'm still testing, but if possible I recommend changing this filter to two settings as follows:

1) "Must Be Newer Than" -> "Must Be Published Within __ days"

+

2) "Last Updated Must Be Within __ days"

This would make the current filter more accurate and function as intended for anyone that needs only fresh YouTube XML content, or is trying to target the "published" date field.

April 19, 2025
3:06 pm
Avatar
CyberSEO
Admin
Forum Posts: 4155
Member Since:
July 2, 2009
sp_UserOfflineSmall Offline

Thanks for the suggestion - we've seen similar requests before, and you're absolutely right that there is a real need to distinguish between publication and last update dates, especially with YouTube XML feeds.

Currently, the filter uses the update date because many users rely on it to catch all recent changes - not just new uploads, but also changes to titles, thumbnails, etc. That said, we completely understand your use case, and you're not alone - filtering by original publication date is just as important for setups that focus strictly on fresh content. We're looking at ways to solve it.

Meanwhile, since CyberSEO Pro supports custom PHP snippets, your task can be solved right now with a single line of PHP code. The publication date is available as $xml_tags['published']['val'], while the update date is in $xml_tags['updated']['val']. You can compare either of these to the current time and your preferred range. If the condition isn't true, just set $post = false; - this tells the plugin to skip the post.

Here's a simple example that skips posts published more than 1 day ago:

Login to see the code

Or use updated instead of published, depending on your needs.

If you're not comfortable writing code, feel free to ask our GPT Assistant here: Login to see this link - it's great at generating snippets like this for CyberSEO Pro.

April 20, 2025
2:44 am
Avatar
TheRiz
Member
Members
Forum Posts: 12
Member Since:
December 2, 2024
sp_UserOfflineSmall Offline

Ok, thanks for the code, I will test it. I was using the ChatGPT CyberSEO assistant and it kept recommending preprocess code that didn't seem to work well.

Side note - when using this custom php, should I keep "must be newer than" enabled?

Also, hopefully this custom php occurs before any API requests are submitted, to save on requests. Ideally it filters the post first, then handles any AI requests, etc.

April 20, 2025
3:31 am
Avatar
TheRiz
Member
Members
Forum Posts: 12
Member Since:
December 2, 2024
sp_UserOfflineSmall Offline

*Update* - according to the syndicator log, custom php is executed after post processing such as sending the request to AI. Is there a way to use the same filter, but apply it before post processing as not to waste API requests?

April 20, 2025
6:57 am
Avatar
CyberSEO
Admin
Forum Posts: 4155
Member Since:
July 2, 2009
sp_UserOfflineSmall Offline

It doesn't matter what options you have enabled in the feed settings, including "must be newer than" or anything else. Your custom PHP snippet will be executed according to the plugin's internal workflow, regardless of these settings.

All content processing (e.g. translation, rewriting, filtering, etc.) should be done inside the PHP snippet using CyberSEO Pro API functions. Therefore, the corresponding options should be disabled in the plugin settings. When communicating with the GPT Assistant, be sure to clearly state that you're looking for a solution that uses only custom PHP, without relying on preprocessing or other plugin settings. Ask it to use API functions to implement your specific use case - unfortunately you didn't mention exactly what you are trying to achieve (translation, rewriting, filtering, etc.).

Please note that the PHP snippet example I provided is just an alternative workaround. After evaluating all possible solutions to your problem, we've decided to change the behavior of the plugin itself. For YouTube feeds, the "must be newer than" filter in 12.000 will use the date of publication instead of the time of update. According to YouTube's own policy, content updates (such as thumbnail changes) don't change the video itself - so checking the updated date doesn't make sense for your use case.

April 20, 2025
3:19 pm
Avatar
TheRiz
Member
Members
Forum Posts: 12
Member Since:
December 2, 2024
sp_UserOfflineSmall Offline

Great, I will update the plugin and remove custom php to see how it works. Thanks

April 24, 2025
6:58 pm
Avatar
TheRiz
Member
Members
Forum Posts: 12
Member Since:
December 2, 2024
sp_UserOfflineSmall Offline

Just to follow up, the new plugin version is working very well to filter for published date using XML.

An additional request for videos would be on the 'YouTube search query' field under Media Enrichment:

- filter by date

- filter out shorts or only shorts

May 1, 2025
1:23 pm
Avatar
harboot
Member
Members
Forum Posts: 73
Member Since:
March 3, 2024
sp_UserOfflineSmall Offline

you can filter by date.

filter out shorts or only shorts - iam looking for this feature also.

but iam checking Youtube RSS Item, how to identify its Short/Normal Youtube Video ?

Its even not showing duration time.

May 1, 2025
1:39 pm
Avatar
CyberSEO
Admin
Forum Posts: 4155
Member Since:
July 2, 2009
sp_UserOfflineSmall Offline

harboot said

filter out shorts or only shorts - iam looking for this feature also.

Regarding YouTube shorts - there's currently no reliable way to detect or filter them via RSS. YouTube doesn't label them in the feed, and they often have no duration or metadata to distinguish them from regular videos.

However, we might consider filtering them out by default, since short videos are generally not useful for article generation or content enrichment. They typically lack titles, descriptions, and meaningful content.

If we do add such filtering, it will be done automatically - not as a separate UI option - because this feature makes sense for most use cases.

May 1, 2025
2:02 pm
Avatar
harboot
Member
Members
Forum Posts: 73
Member Since:
March 3, 2024
sp_UserOfflineSmall Offline
10sp_Permalink sp_Print
0

You mean like, we can filter if content contain less then 10000 characters (assumption for 1 minutes english video)

May 2, 2025
5:36 am
Avatar
CyberSEO
Admin
Forum Posts: 4155
Member Since:
July 2, 2009
sp_UserOfflineSmall Offline
11sp_Permalink sp_Print
0

Yes, in theory you could set a filter like "post content must be at least X characters", and many shorts would be filtered out that way - simply because they usually contain very little or no text. But this method isn't reliable.

Some long-form videos may also have very little content (e.g., music videos, trailers), while some shorts may contain a full transcript or detailed description - especially if they are enhanced by AI or third-party captioning.

So while a content-length filter might reduce the number of shorts, it's not a guaranteed way to remove them. That's why there's no official "shorts only" or "exclude shorts" filter - YouTube itself doesn't disclose this information in the RSS feed.

When we add automatic short filtering in the plugin, it will be based on more consistent heuristics (such as URL path patterns or embedded player detection), not just raw content length.

May 3, 2025
5:37 pm
Avatar
TheRiz
Member
Members
Forum Posts: 12
Member Since:
December 2, 2024
sp_UserOfflineSmall Offline
12sp_Permalink sp_Print
0

harboot said
you can filter by date.

filter out shorts or only shorts - iam looking for this feature also.

but iam checking Youtube RSS Item, how to identify its Short/Normal Youtube Video ?

Its even not showing duration time.  

Does the date filter for the main content feed also apply to the "media enrichment" Youtube video search? I don't think it does in my testing.

May 4, 2025
6:43 am
Avatar
CyberSEO
Admin
Forum Posts: 4155
Member Since:
July 2, 2009
sp_UserOfflineSmall Offline
13sp_Permalink sp_Print
0

The date filter works for RSS and Atom feeds, including YouTube RSS feeds - each item there has its own publication date, so filtering works as expected.

However, YouTube video search in Media Enrichment doesn't support date-based filtering. YouTube's search API doesn't expose reliable release dates in a way that can be used for filtering in this context.

May 20, 2025
9:48 am
Avatar
harboot
Member
Members
Forum Posts: 73
Member Since:
March 3, 2024
sp_UserOfflineSmall Offline
14sp_Permalink sp_Print
0

Hii Cyberseo

I saw the update 

12.010 (May 11, 2025)
  • Added - Support for OpenAI’s latest image generation model gpt-image-1 in the [dalle] shortcode and on the Media Enrichment tab.
  • Improved - YouTube video imports now exclude Shorts and Playlists to prevent unwanted content.
  • Removed - Support for the deprecated stable-diffusion-xl-beta-v2-2-2 image model.

But i can't find the configuration or if its implement directly i dont see the filter works.

May 21, 2025
7:30 am
Avatar
CyberSEO
Admin
Forum Posts: 4155
Member Since:
July 2, 2009
sp_UserOfflineSmall Offline
15sp_Permalink sp_Print
0

There are no configuration settings for this. Now the plugin simply ignores YouTube playlists and shorts. Only videos are imported.

Forum Timezone: Europe/Amsterdam

Most Users Ever Online: 541

Currently Online:
9 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

ninja321: 86

harboot: 73

s.baryshev.aoasp: 68

Freedom: 61

Pandermos: 54

tormodg: 51

Member Stats:

Guest Posters: 337

Members: 3030

Moderators: 0

Admins: 1

Forum Stats:

Groups: 1

Forums: 5

Topics: 1711

Posts: 8827

Newest Members:

timetolive.naver, centrozone.mailfence, flavvourr, sara.chugwell.radiologist, gaurav.s.solanki1, lastchaosmaster94

Administrators: CyberSEO: 4155