Nuka1195 Wrote:search results can be changed in xbmcplugin_categories.py.
change "updated" to "relevant". post back if the results are better, i may change it.
Code:
categories += ( ( query.split( " | " )[ 1 ].encode( "utf-8" ), "videos", vq, username, cat, True, "updated", 0, thumbnail, False, ), )
FYI, changing it to just "relevant" kills the plugin, "relevancy" did wonders with the search results.
I searched for "timbaland katy perry", go a few results. Many of them working, but the "real" video from the user TimbalandVEVO on Youtube creates this lo:
[HTML]03:03:44 T:3077650320 M:1314869248 NOTICE: DVDPlayer: Opening:
http://v4.lscache1.c.youtube.com/videopl...sparams=id
03:03:44 T:3077650320 M:1314947072 WARNING: CDVDMessageQueue(player):
ut MSGQ_NOT_INITIALIZED
03:03:44 T:2744068976 M:1314947072 NOTICE: Creating InputStream
03:03:45 T:2744068976 M:1299202048 ERROR: CFileCurl::CReadState::Open, didn't get any data from stream.
03:03:45 T:2744068976 M:1299202048 ERROR: Open - failed to open source <http://v4.lscache1.c.youtube.com/videoplayback?ip=0.0.0.0&sparams=id>
03:03:45 T:2744068976 M:1314947072 ERROR: CDVDPlayer::OpenInputStream - error opening [
http://v4.lscache1.c.youtube.com/videopl...sparams=id]
03:03:45 T:2744068976 M:1314947072 NOTICE: CDVDPlayer::OnExit()
03:03:45 T:2744068976 M:1314947072 NOTICE: CDVDPlayer::OnExit() deleting input stream
03:03:45 T:3077650320 M:1314947072 ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://video/YouTube/?category='play_video'&video_url=u%27http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DKDKva-s_khY%26feature%3Dyoutube_gdata%27&releated='KDKva-s_khY'&update_listing=0]
03:03:45 T:3077650320 M:1314947072 NOTICE: CDVDPlayer::CloseFile()
03:03:45 T:3077650320 M:1314947072 WARNING: CDVDMessageQueue(player):
ut MSGQ_NOT_INITIALIZED
03:03:45 T:3077650320 M:1314947072 NOTICE: DVDPlayer: waiting for threads to exit
03:03:45 T:3077650320 M:1314947072 NOTICE: DVDPlayer: finished waiting
[/HTML]
It says: 03:03:45 T:2744068976 M:1299202048 ERROR: Open - failed to open source <http://v4.lscache1.c.youtube.com/videoplayback?ip=0.0.0.0&sparams=id>
This feels like something is pointing to an ip-adress of 0.0.0.0 and the "id" parameter is empty and below this:
03:03:45 T:3077650320 M:1314947072 ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://video/YouTube/?category='play_video'&video_url=u%27http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DKDKva-s_khY%26feature%3Dyoutube_gdata%27&releated='KDKva-s_khY'&update_listing=0]
This gives you an "youtubeid" of KDKva-s_khY, when i tried
http://www.youtube.com/watch?v=KDKva-s_khY in my browser, it starts the requested video.
Working log:
Code:
03:06:31 T:2799696752 M:1312817152 NOTICE: -->Python Interpreter Initialized<--
03:06:35 T:3077650320 M:1313796096 NOTICE: DVDPlayer: Opening: http://v15.lscache8.c.youtube.com/videoplayback?ip=85.0.0.0&sparams=id%2Cexpire%2Cip%2Cipbits%2Citag%2Calgorithm%2Cburst%2Cfactor&fexp=900029&algorithm=throttle-factor&itag=35&ipbits=8&burst=40&sver=3&expire=1273910400&key=yt1&signature=1CC6951CF0C67E610F5B1A075BDC523402DF8E56.0F84F6BD543C6FA3D2493FE022CE073085E63666&factor=1.25&id=ad009ff03759dc63
03:06:35 T:3077650320 M:1313923072 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
03:06:35 T:2744068976 M:1313923072 NOTICE: Creating InputStream
03:06:36 T:2744068976 M:1298026496 NOTICE: Creating Demuxer
03:06:36 T:2744068976 M:1298026496 NOTICE: Opening video stream: 0 source: 256
03:06:36 T:2744068976 M:1298026496 NOTICE: Creating video codec with codec id: 0
03:06:36 T:2744068976 M:1298026496 ERROR: Unsupported video codec
03:06:36 T:2744068976 M:1298026496 WARNING: OpenVideoStream - Unsupported stream 0. Stream disabled.
03:06:36 T:2744068976 M:1298026496 NOTICE: Opening audio stream: 1 source: 256
03:06:36 T:2744068976 M:1298026496 NOTICE: Finding audio codec for: 0
03:06:36 T:2744068976 M:1297391616 ERROR: Unsupported audio codec
03:06:36 T:2744068976 M:1297391616 WARNING: OpenAudioStream - Unsupported stream 1. Stream disabled.
03:06:36 T:2744068976 M:1297391616 WARNING: Process - Could not detect frame rate for: http://v15.lscache8.c.youtube.com/videoplayback?ip=85.0.0.0&sparams=id%2Cexpire%2Cip%2Cipbits%2Citag%2Calgorithm%2Cburst%2Cfactor&fexp=900029&algorithm=throttle-factor&itag=35&ipbits=8&burst=40&sver=3&expire=1273910400&key=yt1&signature=1CC6951CF0C67E610F5B1A075BDC523402DF8E56.0F84F6BD543C6FA3D2493FE022CE073085E63666&factor=1.25&id=ad009ff03759dc63. Using default of 25.000 fps for conversion of any commercial break frame markers to times.
03:06:36 T:2744068976 M:1297391616 NOTICE: Opening audio stream: 1 source: 256
03:06:36 T:2744068976 M:1297391616 NOTICE: Finding audio codec for: 86018
03:06:36 T:2744068976 M:1297391616 NOTICE: Creating audio thread
03:06:36 T:2727283568 M:1297391616 NOTICE: running thread: CDVDPlayerAudio::Process()
03:06:36 T:2744068976 M:1297391616 NOTICE: Opening video stream: 0 source: 256
03:06:36 T:2744068976 M:1297391616 NOTICE: Creating video codec with codec id: 28
03:06:36 T:2744068976 M:1297391616 NOTICE: CDVDVideoCodecFFmpeg::Open() Creating VDPAU(0x0)
03:06:36 T:2744068976 M:1296977920 NOTICE: vdp_device = 0x00000001 vdp_st = 0x00000000
03:06:36 T:2744068976 M:1296977920 NOTICE: CDVDVideoCodecFFmpeg::Open() Using codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (VDPAU acceleration)
03:06:36 T:2744068976 M:1296977920 NOTICE: Creating video thread
03:06:36 T:2727283568 M:1296850944 NOTICE: Creating audio device with codec id: 86018, channels: 2, sample rate: 44100, no pass-through
03:06:36 T:2718890864 M:1296723968 ERROR: (VDPAU) ReleasePixmap called without valid pixmap
03:06:36 T:2718890864 M:1296695296 NOTICE: running thread: video_thread
03:06:36 T:2718890864 M:1296683008 NOTICE: Creating 1280x720 pixmap
03:06:36 T:2718890864 M:1294860288 NOTICE: (VDPAU) Didnt find a Video Surface Available (Total: 0). Creating a new one. TRY #1
03:06:36 T:2718890864 M:1294352384 NOTICE: (VDPAU) FiniVDPAUOutput
03:06:36 T:2718890864 M:1294352384 NOTICE: (VDPAU) screenWidth:1280 vidWidth:640
03:06:36 T:2718890864 M:1294352384 NOTICE: (VDPAU) screenHeight:720 vidHeight:480
03:06:36 T:2718890864 M:1287057408 NOTICE: (VDPAU) Total Output Surfaces Available: 4 of a max (tmp: 4 const: 4)
03:06:36 T:2718890864 M:1287057408 NOTICE: VDPAU Decoder capabilities:
03:06:36 T:2718890864 M:1287057408 NOTICE: name level macbs width height
03:06:36 T:2718890864 M:1287057408 NOTICE: ------------------------------------
03:06:36 T:2718890864 M:1287057408 NOTICE: MPEG1 0 8192 2048 2048
03:06:36 T:2718890864 M:1287057408 NOTICE: MPEG2_SIMPLE 3 8192 2048 2048
03:06:36 T:2718890864 M:1287057408 NOTICE: MPEG2_MAIN 3 8192 2048 2048
03:06:36 T:2718890864 M:1287057408 NOTICE: H264_MAIN 41 8190 2032 2048
03:06:36 T:2718890864 M:1287057408 NOTICE: H264_HIGH 41 8190 2032 2048
03:06:36 T:2718890864 M:1287057408 NOTICE: VC1_SIMPLE 1 8190 2048 2048
03:06:36 T:2718890864 M:1287057408 NOTICE: VC1_MAIN 2 8190 2048 2048
03:06:36 T:2718890864 M:1287057408 NOTICE: VC1_ADVANCED 4 8190 2048 2048
03:06:36 T:2718890864 M:1287057408 NOTICE: (VDPAU) Creating the video mixer
03:06:36 T:2718890864 M:1287057408 NOTICE: (VDPAU) enabling VDP_VIDEO_MIXER_FEATURE_HIGH_QUALITY_SCALING_L1
03:06:36 T:2718890864 M:1284722688 NOTICE: fps: 25.000000, pwidth: 640, pheight: 480, dwidth: 640, dheight: 480
03:06:36 T:2718890864 M:1284722688 NOTICE: Display resolution DESKTOP : 1280x720 @ 50.00 - Full Screen (12)
03:06:36 T:3077650320 M:1284722688 NOTICE: Using GL_TEXTURE_2D
03:06:36 T:3077650320 M:1284722688 NOTICE: GL: Using VDPAU render method
03:06:36 T:3077650320 M:1284722688 NOTICE: GL: NPOT texture support detected
03:06:36 T:2718890864 M:1284722688 NOTICE: (VDPAU) Didnt find a Video Surface Available (Total: 1). Creating a new one. TRY #1
03:06:36 T:2718890864 M:1284087808 NOTICE: (VDPAU) Didnt find a Video Surface Available (Total: 2). Creating a new one. TRY #1
03:06:36 T:2718890864 M:1283452928 NOTICE: (VDPAU) Didnt find a Video Surface Available (Total: 3). Creating a new one. TRY #1
03:06:36 T:3077650320 M:1282691072 WARNING: CreateFile, successfuly opened </home/hank/.xbmc/skin/Rapier/720p/VideoFullscreen.xml> instead of </home/hank/.xbmc/skin/Rapier/720p/VideoFullScreen.xml>
03:06:36 T:3077650320 M:1281953792 NOTICE: Created m_glPixmapTexture (69)
Is it the script or is it youtube that screws around. It feels like only the good stuff doesnt work, all the "crap" works. Might be a coincidence but... my stomach tells me it isnt.