Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Add extractor for cultureunplugged.com #7954

Closed
sjjh opened this issue Dec 23, 2015 · 4 comments
Closed

Feature request: Add extractor for cultureunplugged.com #7954

sjjh opened this issue Dec 23, 2015 · 4 comments

Comments

@sjjh
Copy link

@sjjh sjjh commented Dec 23, 2015

Looking at the supported sites http://www.cultureunplugged.com/ is not supported yet. I would love if an extractor could be added for it.

simon@laptop:~$ youtube-dl -v "http://www.cultureunplugged.com/documentary/watch-online/play/9096/Laula"
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'-v', u'http://www.cultureunplugged.com/documentary/watch-online/play/9096/Laula']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2015.06.04.1
[debug] Python version 2.7.10 - Linux-4.2.0-22-generic-x86_64-with-Ubuntu-15.10-wily
[debug] exe versions: ffmpeg 2.7.3-0ubuntu0.15.10.1, ffprobe 2.7.3-0ubuntu0.15.10.1, rtmpdump 2.4
[debug] Proxy map: {}
[generic] Laula: Requesting header
WARNING: Falling back on generic information extractor.
[generic] Laula: Downloading webpage
[generic] Laula: Extracting information
ERROR: Unsupported URL: http://www.cultureunplugged.com/documentary/watch-online/play/9096/Laula
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/generic.py", line 997, in _real_extract
    doc = parse_xml(webpage)
  File "/usr/lib/python2.7/dist-packages/youtube_dl/utils.py", line 1558, in parse_xml
    tree = xml.etree.ElementTree.XML(s.encode('utf-8'), **kwargs)
  File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1300, in XML
    parser.feed(text)
  File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1642, in feed
    self._raiseerror(v)
  File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1506, in _raiseerror
    raise err
ParseError: undefined entity: line 5, column 1
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/youtube_dl/YoutubeDL.py", line 650, in extract_info
    ie_result = ie.extract(url)
  File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/common.py", line 273, in extract
    return self._real_extract(url)
  File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/generic.py", line 1532, in _real_extract
    raise UnsupportedError(url)
UnsupportedError: Unsupported URL: http://www.cultureunplugged.com/documentary/watch-online/play/9096/Laula
@davidjameshowell
Copy link

@davidjameshowell davidjameshowell commented Dec 30, 2015

Adding this to my list to create next. Simple enough. Raw MP4 links accessible.

Notes below:

http://www.cultureunplugged.com/documentary/watch-online/play/53662/The-Next--Best-West

http://www.cultureunplugged.com/movie-data/cu-<id>.json?_=1451462224274
{
   "id":"53662",
   "uid":"29816",
   "url":"http:\/\/cdn4.cultureunplugged.com\/lg\/THE_NEXT_BEST_WEST_53662.mp4",
   "title":"The Next, Best West",
   "director":"Hunter Sykes",
   "producer":"Coldstream Creative",
   "country":"US",
   "year":"2012",
   "from":"Hunter Sykes",
   "duration":"2203",
   "screenName":"Hunter_Sykes",
   "synopsis":"The Next, Best West explores our changing relationship with the land that sustains us. It tells the story of how the conventional American concept of progress has steered our exploitation of the Western landscape, and takes you to three places \u2013 Colorado\u2019s San Luis Valley, the high plains of eastern Montana and the Elwha River on Washington\u2019s Olympic Peninsula \u2013 where a vibrant new understanding of progress presages a better future. The Next, Best West shows how our interpretation of progress has shaped the singular landscape of the American West, and how a new understanding of progress may be our best hope for a bright and healthy future. The West is a place of pure beauty that has provided us so much, yet we have cared for it too little. But that is beginning to change.",
   "genre":"Documentary",
   "genreId":"10",
   "playerLink":"\/documentary\/watch-online\/play\/53662\/The-Next--Best-West",
   "countryFullName":"United States",
   "movieTags":[
      {
         "id":"331",
         "tag":"Americas",
         "showOnSite":"Y",
         "wikiLinks":[

         ]
      },
      {
         "id":"358",
         "tag":"Ecology",
         "showOnSite":"Y",
         "wikiLinks":[
            {
               "tagLabel":"Deep Ecology",
               "link":"http:\/\/en.wikipedia.org\/wiki\/Deep_ecology",
               "festivalTheme":"GU"
            },
            {
               "tagLabel":"Ecology",
               "link":"http:\/\/en.wikipedia.org\/wiki\/Ecology",
               "festivalTheme":"GU"
            },
            {
               "tagLabel":"Ecosystem",
               "link":"http:\/\/en.wikipedia.org\/wiki\/Ecosystem",
               "festivalTheme":"GU"
            }
         ]
      },
      {
         "id":"80",
         "tag":"Environment",
         "showOnSite":"Y",
         "wikiLinks":[
            {
               "tagLabel":"Biodiversity",
               "link":"http:\/\/en.wikipedia.org\/wiki\/Biodiversity",
               "festivalTheme":"GU"
            },
            {
               "tagLabel":"Environmentalism",
               "link":"http:\/\/en.wikipedia.org\/wiki\/Environmentalism",
               "festivalTheme":"GU"
            },
            {
               "tagLabel":"Habitat Conservation",
               "link":"http:\/\/en.wikipedia.org\/wiki\/Habitat_conservation",
               "festivalTheme":"GU"
            },
            {
               "tagLabel":"Sustainability",
               "link":"http:\/\/en.wikipedia.org\/wiki\/Sustainability",
               "festivalTheme":null
            },
            {
               "tagLabel":"Understanding Environment",
               "link":"http:\/\/en.wikipedia.org\/wiki\/Environment_%28biophysical%29",
               "festivalTheme":"GU"
            }
         ]
      },
      {
         "id":"362",
         "tag":"Farming",
         "showOnSite":"Y",
         "wikiLinks":[
            {
               "tagLabel":"Agriculture",
               "link":"http:\/\/en.wikipedia.org\/wiki\/Agriculture",
               "festivalTheme":"GU"
            },
            {
               "tagLabel":"Organic Farming",
               "link":"http:\/\/en.wikipedia.org\/wiki\/Organic_farming",
               "festivalTheme":"GU"
            },
            {
               "tagLabel":"Philosophy of Agriculture",
               "link":"http:\/\/en.wikipedia.org\/wiki\/Agricultural_philosophy",
               "festivalTheme":"GU"
            },
            {
               "tagLabel":"Sustainable agriculture",
               "link":"http:\/\/en.wikipedia.org\/wiki\/Sustainable_agriculture",
               "festivalTheme":"GU"
            },
            {
               "tagLabel":"Types of Agriculture",
               "link":"http:\/\/en.wikipedia.org\/wiki\/Outline_of_agriculture#Two_branches_of_agriculture",
               "festivalTheme":"GU"
            }
         ]
      },
      {
         "id":"363",
         "tag":"Resources",
         "showOnSite":"Y",
         "wikiLinks":[
            {
               "tagLabel":"Natural Resources",
               "link":"http:\/\/en.wikipedia.org\/wiki\/Natural_resources",
               "festivalTheme":"GU"
            },
            {
               "tagLabel":"Overexploitation ",
               "link":"http:\/\/en.wikipedia.org\/wiki\/Overexploitation",
               "festivalTheme":null
            },
            {
               "tagLabel":"Resources",
               "link":"http:\/\/en.wikipedia.org\/wiki\/Resource",
               "festivalTheme":"GU"
            }
         ]
      },
      {
         "id":"2907",
         "tag":"Sustainability",
         "showOnSite":"Y",
         "wikiLinks":[
            {
               "tagLabel":"Circles Of Sustainability",
               "link":"http:\/\/en.wikipedia.org\/wiki\/Circles_of_Sustainability",
               "festivalTheme":"GU"
            },
            {
               "tagLabel":"Sustainable Living",
               "link":"http:\/\/en.wikipedia.org\/wiki\/Sustainable_living",
               "festivalTheme":"GU"
            }
         ]
      },
      {
         "id":"121",
         "tag":"United States",
         "showOnSite":"Y",
         "wikiLinks":[

         ]
      },
      {
         "id":"4748",
         "tag":"wiki_53662",
         "showOnSite":"N",
         "wikiLinks":[
            {
               "tagLabel":"Land use",
               "link":"https:\/\/en.wikipedia.org\/wiki\/Land_use",
               "festivalTheme":"GU"
            },
            {
               "tagLabel":"San Luis Valley",
               "link":"http:\/\/en.wikipedia.org\/wiki\/San_Luis_Valley",
               "festivalTheme":"GU"
            }
         ]
      }
   ],
   "thumbnail":"53662.jpg",
   "large_thumb":"http:\/\/cdn.cultureunplugged.com\/thumbnails\/lg\/53662.jpg",
   "small_thumb":"http:\/\/cdn.cultureunplugged.com\/thumbnails\/sm\/53662.jpg",
   "userPhoto":"\/images\/ul\/29816.jpg",
   "storyTellerLink":"\/storyteller\/Hunter_Sykes",
   "storyTellerCountry":"US",
   "storyTellerCountryFullName":"United States",
   "storyTellerName":"Hunter Sykes",
   "views":"122",
   "numShared":"3",
   "rating":"0",
   "status":"LIVE",
   "allowEmbed":false,
   "previewUrl":"http:\/\/cdn4.cultureunplugged.com\/sm\/THE_NEXT_BEST_WEST_53662.mp4",
   "mature":false,
   "requestDvdUrl":"http:\/\/coldstreamcreative.com\/the-next-best-west\/",
   "undiscovered":false,
   "festivalAbbr":"gu",
   "sendEmailLink":"javascript:sendNotification('sendEmailToStoryTeller', { uid : 29816, name: 'Hunter Sykes'})"
}
@davidjameshowell
Copy link

@davidjameshowell davidjameshowell commented Dec 30, 2015

Completed and working so far. See pull request.

@sjjh
Copy link
Author

@sjjh sjjh commented Dec 30, 2015

@davidjameshowell Thanks a lot for your work!

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Mar 26, 2016

cultureunplugged is supported for quite some time already.

@dstftw dstftw closed this Mar 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.