Ticket #2169: make_dvd_backup_dirs_visible_in_listing_mode.diff
| File make_dvd_backup_dirs_visible_in_listing_mode.diff, 2.4 KB (added by , 19 years ago) |
|---|
-
mythvideo/mythvideo/videolist.cpp
old new 409 409 } 410 410 411 411 GenericTree *VideoList::addDirNode(GenericTree *where_to_add, 412 const QString& dname)412 const QString& dname) 413 413 { 414 414 GenericTree *sub_node, *up_node; 415 415 … … 426 426 } 427 427 428 428 GenericTree *VideoList::addFileNode(GenericTree *where_to_add, 429 const QString& fname, int index)429 const QString& fname, int index) 430 430 { 431 431 int a_counter = 0; 432 432 GenericTree *sub_node; 433 434 433 QStringList list(QStringList::split("/", fname)); 435 434 QStringList::Iterator an_it = list.begin(); 436 435 for( ; an_it != list.end(); ++an_it) … … 438 437 if(a_counter + 1 >= (int) list.count()) // video 439 438 { 440 439 QString title = (*an_it); 441 sub_node = where_to_add->addNode(title.section(".",0,-2), 442 index, true); 440 441 // this results in (DVD backup) directories having a title in 442 // the file list and video files having a title with only their 443 // file basename (suffix stripped) 444 if (title.find(".") > 0) { 445 title = title.section(".", 0, -2); 446 } 447 sub_node = where_to_add->addNode(title, index, true); 443 448 sub_node->setAttribute(0, ORDER_ITEM); 444 449 sub_node->setOrderingIndex(0); 445 450 nitems++; -
mythvideo/mythvideo/videotree.cpp
old new 241 241 int file_browser = gContext->GetNumSetting("VideoTreeNoDB", 0); 242 242 243 243 video_tree_root = video_list->buildVideoList(file_browser, false, 244 current_parental_level);244 current_parental_level); 245 245 if (video_tree_root->childCount() > 0) 246 246 video_tree_data = video_tree_root->getChildAt(0,0); 247 247 else video_tree_data = video_tree_root;
