better sort option (reverse)
Home › Forums › Minitube Forums › Feature Requests › better sort option (reverse)
This topic contains 5 replies, has 2 voices, and was last updated by Flavio 1 year, 5 months ago.
-
AuthorPosts
-
Nov 22, 2011 at 9:21 pm #1445
spiderbitHi,
I like mt really much, I am a programmer by myself, but very rusty in c++ so if you would help me maybe I could do that by myself, but maybe its easier to do for you.
I have following problem, I watch sc2 games from different channels, if I click on newest the newest comes on top so far so good. If thats a 1 Part video thats what I want, but if its a multipart game or its a match that goes over some games I see the last game/part at the top.
There should be 1 of 2 solutions first would be, play games from a selected one upwards so I go lets say to the 3. game and press play-reverse button and it playes that way or the maybe easier solution what would not need a new button/gui design would be select 3 or 5 or 7 matches and in then in the context menu there would be a resort-reverse option.
The deluxe solution would be that minitube would detect with regex such stuff and sort it automaticly. But that is maybe not 100% fault-proof, because somebody is maybe not so consistent in naming multipart-videos properly, but on the other hand, mostly they do (I watch as example huskystarcraft, hdstarcraft or psystarcraft)
Nov 26, 2011 at 4:37 pm #1489
BrummbQyeah I have a similar problem, watching sc2 videos from newest to oldest doesn\’t cut the cheese. So I reversed the playing order but probably you don\’t want to change the default behaviour. What options do we have? Maybe a conig dialog?
Nov 26, 2011 at 5:19 pm #1490No dialogs on Minitube! I think adding a new tab like “Less recent” would be enough.
Dec 4, 2011 at 2:45 pm #1574
spiderbitYes I think that would be good ;)
Dec 4, 2011 at 9:13 pm #1578
JensHi
I also watch Starcraft and coded in a reverse play order menu option. This is just a simple hack:
Common subdirectories: ./iconloader and ../../minitube1.6/src//iconloader
diff ./ListModel.cpp ../../minitube1.6/src//ListModel.cpp
116,122d115
< int ListModel::previousRow() const {
< int previousRow = m_activeRow – 1;
< if (rowExists(previousRow))
< return previousRow;
< return -1;
< }
<
Only in .: ListModel.cpp~
diff ./ListModel.h ../../minitube1.6/src//ListModel.h
52d51
< int previousRow() const;
Only in .: ListModel.h~
diff ./MainWindow.cpp ../../minitube1.6/src//MainWindow.cpp
238,244d237
< reverseAct = new QAction(tr("&Reverse"), this);
setStatusTip(tr(“Reverse the play order”));
setShortcut(QKeySequence(Qt::CTRL + Qt::Key_R));
setEnabled(true);
setCheckable(true);
insert(“reverse”, reverseAct);
<
430,431d422
addSeparator();
addAction(reverseAct);
Only in .: MainWindow.cpp~
diff ./MainWindow.h ../../minitube1.6/src//MainWindow.h
125d124
< QAction *reverseAct;
Only in .: MainWindow.h~
diff ./MediaView.cpp ../../minitube1.6/src//MediaView.cpp
486,491d485
< void MediaView::previous() {
previousRow();
< if (nextRow == -1) return;
setActiveRow(nextRow);
< }
<
498,504c492
< } else{
value(“reverse”)->isChecked()) {
< previous();
< } else {
< skip();
< }
} else skip();
Only in .: MediaView.cpp~
diff ./MediaView.h ../../minitube1.6/src//MediaView.h
51d50
< void previous();
Only in .: MediaView.h~
Common subdirectories: ./playlist and ../../minitube1.6/src//playlist
Common subdirectories: ./qtsingleapplication and ../../minitube1.6/src//qtsingleapplication
Common subdirectories: ./thlibrary and ../../minitube1.6/src//thlibrary
498,504c492
< } else{
value(“reverse”)->isChecked()) {
< previous();
< } else {
< skip();
< }
} else skip();
Only in .: MediaView.cpp~
diff ./MediaView.h ../../minitube1.6/src//MediaView.h
51d50
< void previous();
Only in .: MediaView.h~If it is ok with flavio I can link to a compiled version…
Dec 7, 2011 at 9:55 am #1615I don’t think this is going to be included. This behavior is kind of unintuitive. Unfortunately it looks like YouTube APIs do not provide a way to load videos from older to newer for channels.
-
AuthorPosts