comparison src/streambrowser/streambrowser.c @ 2850:587b3657990d

xiph now updates the streams as well; i am aware of gui crashing when adding xiph streams, but tomorrow is another lovely day
author Calin Crisan ccrisan@gmail.com
date Tue, 29 Jul 2008 00:20:31 +0300
parents fbb32674bfd2
children
comparison
equal deleted inserted replaced
2849:3ba1579e37a5 2850:587b3657990d
364 if (data->add_to_playlist) 364 if (data->add_to_playlist)
365 streaminfo_add_to_playlist(data->streaminfo); 365 streaminfo_add_to_playlist(data->streaminfo);
366 else { 366 else {
367 /* shoutcast */ 367 /* shoutcast */
368 if (strncmp(data->streamdir->name, SHOUTCAST_NAME, strlen(SHOUTCAST_NAME)) == 0) { 368 if (strncmp(data->streamdir->name, SHOUTCAST_NAME, strlen(SHOUTCAST_NAME)) == 0) {
369 printf("DAAAA!\n");
370 shoutcast_streaminfo_fetch(data->category, data->streaminfo); 369 shoutcast_streaminfo_fetch(data->category, data->streaminfo);
371 } 370 }
372 /* xiph */ 371 /* xiph */
373 else if (strncmp(data->streamdir->name, XIPH_NAME, strlen(XIPH_NAME)) == 0) { 372 else if (strncmp(data->streamdir->name, XIPH_NAME, strlen(XIPH_NAME)) == 0) {
374 //xiph_category_fetch(data->category); 373 xiph_streaminfo_fetch(data->category, data->streaminfo);
375 } 374 }
376 } 375 }
377 376
378 gdk_threads_enter(); 377 gdk_threads_enter();
379 if (!data->add_to_playlist) 378 if (!data->add_to_playlist)
474 aud_playlist_add(aud_playlist_get_active(), PLAYLIST_TEMP_FILE); 473 aud_playlist_add(aud_playlist_get_active(), PLAYLIST_TEMP_FILE);
475 debug("stream playlist '%s' added\n", streaminfo->playlist_url); 474 debug("stream playlist '%s' added\n", streaminfo->playlist_url);
476 } 475 }
477 476
478 if (strlen(streaminfo->url) > 0) { 477 if (strlen(streaminfo->url) > 0) {
479 aud_playlist_add(aud_playlist_get_active(), streaminfo->url); 478 aud_playlist_add(aud_playlist_get_active(), streaminfo->url);
480 debug("stream '%s' added\n", streaminfo->url); 479 debug("stream '%s' added\n", streaminfo->url);
481 } 480 }
482 } 481 }
483 482
484 static void on_plugin_services_menu_item_click() 483 static void on_plugin_services_menu_item_click()