[coherence-dev] Youtube error <type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'url'
Dominik
dominikruf at googlemail.com
Wed Apr 1 18:41:52 CEST 2009
Hi again,
my frontend is a XBox 360 and my config is much simpler:
[[YouTubeStore]]
name = Coherence - YouTube
quality = hd
proxy_mode = buffered
But back to your problem:
-I think the jerky playback is because of your proxy_mode setting
cache_maxsize and buffer_size only take effect if proxy_mode is set to buffered or cached
-I think the exception you (sometimes?) get is caused by a bug that only occurs if you are using an userid
I have no youtube account yet so I can debug it at the moment sorry
maybe someone else can jump in here
FYI I have just started to dig onto coherence and its backends
so don't take my word for granted :-)
Hi!
Thanks, I appreciate any tips. My device is Buffalo Linkstation live.
What's your frontend? I'm using PS3 and the Youtube videos seem to
have have jerky playback despite of the quality and buffer settings.
On the PS3 browser the same videos play flawlessly.
- Oz
2009/4/1 Dominik Ruf <dominikruf at googlemail.com>:
> Hi,
>
> I can't look into this at the moment but I am also using coherence on an ARM
> base NAS and YouTube works for me.
> Maybe I'll find some time this evening.
> Just out of curiosity what NAS do you use? I have a D-Link DNS 323.
>
> -Dominik
>
> 2009/4/1 omakinen <omakinen at gmail.com>
>>
>> Hi!
>>
>> I'm using Coherence 6.20 in debian etch environment (in ARM based NAS
>> device). I have self compiled most of the dependencies Coherence needs
>> because usually the Deb repositories have too old stuff.
>>
>> When I try to view Youtube Favourites, or Playlists I get this "dump"
>> on the webUI. Sometimes I get 2 or 3 videos in the frontend, but not
>> all.
>>
>> My config file:
>>
>> [[YouTubeStore]]
>> name = Youtube
>> userid = xxxxxxxx
>> password = xxxxxxxx
>> proxy_mode = proxy
>> quality = hd
>> cache_maxsize = 200000000
>> buffer_size = 3000000
>>
>> The error:
>>
>> web.Server Traceback (most recent call last):
>> <type 'exceptions.AttributeError'>: 'NoneType' object has no attribute
>> 'url'
>>
>> ---------------------------------------------------------------------------------------------------------------------------------------------------------------------
>>
>> /mnt/disk1/usr/local/lib/python2.5/site-packages/Twisted-8.2.0_r26335-py2.5-linux-armv5tejl.egg/twisted/internet/defer.py,
>> line 328 in _runCallbacks
>> 326 self._runningCallbacks = True
>> 327 try:
>> 328 self.result = callback(self.result, *args, **kw)
>> 329 finally:
>> Self
>> _runningCallbacks True
>> result twisted.python.failure.Failure instance @ 0x41afc7ac
>> <twisted.python.failure.Failure <type 'exceptions.AttributeError'>>
>> Locals
>> callback function gotFeed in file
>>
>> /usr/local/lib/python2.5/site-packages/Coherence-0.6.2-py2.5.egg/coherence/backends/youtube_storage.py
>> at line 880
>> self twisted.internet.defer.Deferred instance @ 0x42daa04c
>> <Deferred at 0x42daa04c current result:
>> <twisted.python.failure.Failure <type 'exceptions.AttributeError'>>>
>> args()
>> kw Dictionary instance @ 0x42ec035c
>>
>> ---------------------------------------------------------------------------------------------------------------------------------------------------------------------
>>
>> /usr/local/lib/python2.5/site-packages/Coherence-0.6.2-py2.5.egg/coherence/backends/youtube_storage.py,
>> line 885 in gotFeed
>> 883 return
>> 884 for entry in feed.entry:
>> 885 self.appendVideoEntry(entry, parent)
>> 886
>> Locals
>> feed <gdata.youtube.YouTubePlaylistVideoFeed object at 0x43dxxxx>
>> entry <gdata.youtube.YouTubePlaylistVideoEntry object at 0x43dxxxx>
>> self YouTubeStore'>
>> parent<coherence.backends.youtube_storage.LazyContainer object
>> at 0x43dxxxx>
>>
>> ---------------------------------------------------------------------------------------------------------------------------------------------------------------------
>>
>> /usr/local/lib/python2.5/site-packages/Coherence-0.6.2-py2.5.egg/coherence/backends/youtube_storage.py,
>> line 819 in appendVideoEntry
>> 817 external_id = entry.id.text.split('/')[-1]
>> 818 title = entry.media.title.text
>> 819 url = entry.media.player.url
>> 820 mimetype = MPEG4_MIMETYPE
>> Locals
>> title 'My Video'
>> entry <gdata.youtube.YouTubePlaylistVideoEntry object at 0x43dxxxx>
>> external_id 'BB2A7F639xxxxxxx'
>> id1012
>> Globals
>> MPEG4_MIMETYPE'video/mp4'
>>
>> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------
>> <type 'exceptions.AttributeError'>: 'NoneType' object has no attribute
>> 'url'
>>
>>
>> Thanks for any tips you might have!
>>
>> - Oz
>> _______________________________________________
>> coherence-dev mailing list
>> coherence-dev at lists.beebits.net
>> http://lists.beebits.net/cgi-bin/mailman/listinfo/coherence-dev
_______________________________________________
coherence-dev mailing list
coherence-dev at lists.beebits.net
http://lists.beebits.net/cgi-bin/mailman/listinfo/coherence-dev
--
View this message in context: http://n2.nabble.com/Youtube-error-%3Ctype-%27exceptions.AttributeError%27%3E%3A-%27NoneType%27-object-has-no-attribute-%27url%27-tp2567911p2570166.html
Sent from the coherence-dev mailing list archive at Nabble.com.
More information about the coherence-dev
mailing list