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.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1445

    spiderbit

    Hi,

    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)

    #1489

    BrummbQ

    yeah 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?

    #1490

    Flavio
    Keymaster

    No dialogs on Minitube! I think adding a new tab like “Less recent” would be enough.

    #1574

    spiderbit

    Yes I think that would be good ;)

    #1578

    Jens

    Hi

    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…

    #1615

    Flavio
    Keymaster

    I 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.

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: better sort option (reverse)
Your information:





<a href="" title="" rel=""> <blockquote cite=""> <code> <pre> <em> <strong> <del datetime=""> <ul> <ol start=""> <li> <img src="" border="" alt="" height="" width="">

Get in touch!

For technical support, bug reports and feature requests you can post in the Forums.

You can contact me via email on flavio.tordini@gmail.com or ask me a quick question on Twitter.

Please, don't use Twitter for licensing issues and things that will ultimately require your email address.