google-code-export / feedparser

Automatically exported from code.google.com/p/feedparser
Other
1 stars 0 forks source link

media:restriction content not included #334

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. python
>>> import feedparser
>>> fp = 
feedparser.parse('https://raw.github.com/pculture/vidscraper/28e2f21ed07a420fda3
47b3ee36e90ac919b1788/vidscraper/tests/data/youtube/restricted_api.atom')
>>> fp.entries[0]['media_restriction']
{'type': u'country', 'relationship': u'deny'}

What is the expected output? What do you see instead?

The expected output would contain a 'content' attribute with the actual country 
codes which are restricted.

What version of the product are you using? On what operating system?

Python 2.6, Feedparser 5.1.1 (installed via Pip/PyPI)

Please provide any additional information below.

This came up while parsing an API response for a restricted YouTube video.

YouTube video: http://www.youtube.com/watch?v=YquEJpyZ_3U
API response: gdata.youtube.com/feeds/api/videos/YquEJpyZ_3U?v=2

Original issue reported on code.google.com by paulswa...@gmail.com on 29 Mar 2012 at 1:49

GoogleCodeExporter commented 9 years ago
Any more info on this.  I need this functionality?

Original comment by bl...@oybro.com on 3 May 2012 at 5:38

GoogleCodeExporter commented 9 years ago
I filed a pull request for this and #335: 
https://github.com/kurtmckee/feedparser/pull/4

Original comment by paulswa...@gmail.com on 3 May 2012 at 5:40

GoogleCodeExporter commented 9 years ago
Paul, You rock! Thanks!

Original comment by bl...@oybro.com on 3 May 2012 at 6:55

GoogleCodeExporter commented 9 years ago

Original comment by kurtmckee on 28 May 2012 at 3:15

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 39a85a13c44a.

Original comment by kurtmckee on 13 Jan 2013 at 10:58