1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Check dead links and ask users to correct their media links

Discussion in 'Media Gallery Suggestions' started by Alfa1, Jan 30, 2016.

  1. Alfa1

    Alfa1 Well-Known Member

    Media links often go dead in time. Especially on youtube, etc.
    It would be useful if XFMG would periodically check for dead links and Alert the authors/members that their video link is no longer available and ask them to find a replacement URL.
    This way the webmaster doesn't end up with a mass of dead links to fix and the community will fix most of the problem itself.
    Mijo, IPF, Mr Lucky and 4 others like this.
  2. Fred.

    Fred. Well-Known Member

    I agree, just noticed that I have a lot of broken links in there.

    A list with dead links for the admin would also be good. So it can be fixed.
  3. Chris D

    Chris D XenForo Developer Staff Member

    I think this was suggested a few years ago and I "Not Planned" it then. I will keep an open mind about it, for now, but I think it's worth noting there's a technical challenge in identifying whether a video is "dead" or not.

    For example if you take a YouTube URL that doesn't exist:

    YouTube doesn't actually identify that as a dead URL in the HTTP response. You would usually expect a 404 not found response, but instead it sends a 200 ok response.

    This would leave us doing potentially complex scraping or having to use the YouTube API (if it even helps - it may not) - neither options are particularly preferable.
  4. Fred.

    Fred. Well-Known Member

    Ok, In that case I understand it's a technical challenge. Youtube should send a 404 response!
    I hope youtube will change this in the future, otherwise YouTube API might be the better option.
  5. Chris D

    Chris D XenForo Developer Staff Member

    That's assuming the YouTube API is able to indicate the status of a video more correctly. If the website itself doesn't, maybe the API doesn't either. But something to consider at least.
    Fred. likes this.
  6. Alfa1

    Alfa1 Well-Known Member

    It's something to check out. YouTube has begun monetizing on heavy users of their API's. So hopefully the do flesh out the API in return.
    In the YouTube Data API v3 the function 'youtube.videos.list' with the parameter 'id' will allow you to call a specific video. If the result is empty or has an error code then I would assume it is dead.

Share This Page