Youtube, please let me know the country availability of a given video.
dbasch.posterous.com
dbasch.posterous.com
Also, I wish the same were true for mobile devices. I am heartily sick of being told 'x is not available on mobile' or spoofing the user agent string in my tablet to watch something. It's really none of a publisher's business where I choose to watch something and this attempt at artificial market segmentation is not worth the administrative overhead it imposes.
Not showing the video in the YouTube interface is only a partial fix, and an unrelated one at that. The use case in consideration is tweeted YouTube links; it's not like YouTube can just switch to a new video because the one which you navigated to isn't available.
Why do publishers do that?
I'm an embedded developer, so please forgive my ignorance if this is a foolish question.
curl -s https://gdata.youtube.com/feeds/api/videos/oHg5SJYRHA0?v=2 | xmllint --format - | grep media:restriction
The 'oHg5SJYRHA0' part is the video ID from the URL for the video.curl -s https://gdata.youtube.com/feeds/api/videos/eAfyFTzZDMM?v=2 | xmllint --format - | grep media:restriction
shows:
<media:restriction type="country" relationship="allow">BD BE BF BG BA BB WF BM BN BO BH BI BJ BT JM BW WS BR BS BY BZ RU RW RS TL RE TM TJ RO TK GW GU GT GR GQ GP GY GF GE GD GB GA SV GN GM GL GI GH OM TN IL JO HR HT HU HK HN VE PR PS PW PT PY IQ PA PF PG PE PK PN PL PM ZM EH EE EG ZA EC IT VN SB ET SO ZW SA ES ER ME MD MG MA MC UZ MM ML MO MN MH MK MU MT MW MV MQ MP MS MR UG MY MX VU FR SH FI FJ FK FM FO NI NL NO NA NC NE NG NP NR NU CK CI CH CO CN CM CL CA CG CF CD CZ CY CR CV CU SZ SY KG KE SR KI KH KN KM ST SK KR SI KP KW SN SM SL SC KZ KY SG SE SD DO DM DJ DK VG YE DZ US UY YT LB LC LA TV TW TT TR LK LI LV TO LT LU LR LS TF TG TD TC LY VA VC AE AD AG AF AI IS IR AM AL AO AN AQ AR AU AT IO IN TZ AZ IE UA QA MZ</media:restriction>
curl -s "https://gdata.youtube.com/feeds/api/videos/eAfyFTzZDMM?v=2...
Well, this is my first chrome extension. So please pardon me if it has some really n00bish code.
Dear YouTube, you know where I am. If I'm not allowed to see the bloody video, don't show it to me in search results or recommendations. Thanks.
[disclaimer: i made the tool]
If you got a different page size, or response code, you could check different regions easily.
When your YouTube account gets shut down for posting too many flagged videos, make another one. They're free.