Ticket #3894: mythflixqueue.cpp.remove-moveFix.diff
File mythflixqueue.cpp.remove-moveFix.diff, 2.3 KB (added by , 17 years ago) |
---|
-
.cpp
old new 416 416 gContext->GetSetting("NetFlixMoveToTopCommandLine", 417 417 gContext->GetShareDir() + "mythflix/scripts/netflix.pl -1")); 418 418 419 QString cmdUrl(article->articleURL()); 420 cmdUrl.replace('\'', "%27"); 419 QString movieID(article->articleURL()); 420 int length = movieID.length(); 421 int index = movieID.findRev("/"); 422 movieID = movieID.mid(index+1,length); 423 args += movieID; 421 424 422 QUrl url(cmdUrl);423 424 QString query = url.query();425 QStringList getArgs = QStringList::split('&', query);426 427 for (QStringList::Iterator it = getArgs.begin();it != getArgs.end(); ++it)428 {429 QString name = (*it).section('=', 0, 0);430 QString vale = (*it).section('=', 1);431 432 args += vale;433 }434 425 // execute external command to obtain list of possible movie matches 435 426 QString results = executeExternal(args, "Move To Top"); 436 427 … … 459 450 gContext->GetSetting("NetFlixRemoveFromQueueCommandLine", 460 451 gContext->GetShareDir() + "mythflix/scripts/netflix.pl -R")); 461 452 462 QString cmdUrl(article->articleURL()); 463 cmdUrl.replace('\'', "%27"); 453 QString movieID(article->articleURL()); 454 int length = movieID.length(); 455 int index = movieID.findRev("/"); 456 movieID = movieID.mid(index+1,length); 457 args += movieID; 464 458 465 QUrl url(cmdUrl);466 467 QString query = url.query();468 QStringList getArgs = QStringList::split('&', query);469 470 for (QStringList::Iterator it = getArgs.begin();it != getArgs.end(); ++it)471 {472 QString name = (*it).section('=', 0, 0);473 QString vale = (*it).section('=', 1);474 475 args += vale;476 }477 459 // execute external command to obtain list of possible movie matches 478 460 QString results = executeExternal(args, "Remove From Queue"); 479 461