Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New 'Next episode column' in GTK and for MAL (Qt and GTK) + miscellaneous code refactor #722

Open
wants to merge 18 commits into
base: master
Choose a base branch
from

Commits on Jan 1, 2024

  1. Implemented (GTK) 'Next episode' column, refactored List Tree code

    UI:
    - QoL changes to the right-click context menu of a show, dynamic site name in particular
    - Added "Next episode" column with custom sorting
    - Renamed the old "Progress" column (e.g: 7/13) to Watched, and renamed "Percent" column (the progress bar) to "Progress".
    - Set minimum width for the progress bar to 200 pixels
    
    Code:
    - Refactored a significant part of the list tree (showtreeview.py), making it much easier to read and build upon.
    - Unified column / row reference constants
    - The tree model is now set immediately after tree initialisation
    BigBoyBarney committed Jan 1, 2024
    Configuration menu
    Copy the full SHA
    cff295a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    bbe7177 View commit details
    Browse the repository at this point in the history
  3. Fixed datetime.utcnow deprecation in Qt

    - Replaced deprecated datetime.utcnow() with timezone aware datetime.now(datetime.UTC).
    BigBoyBarney committed Jan 1, 2024
    Configuration menu
    Copy the full SHA
    ec5ee2e View commit details
    Browse the repository at this point in the history
  4. (GTK) Updated default columns

    - Added 'New episode' as default column
    - Reset visible columns config to accommodate the new column names
    BigBoyBarney committed Jan 1, 2024
    Configuration menu
    Copy the full SHA
    5c9a3ef View commit details
    Browse the repository at this point in the history
  5. Commented code

    - Remove redundant comments / commented code blocks
    - Add comments to new code
    - Refactored relative time regex to multiple shorter lines
    BigBoyBarney committed Jan 1, 2024
    Configuration menu
    Copy the full SHA
    9e7f1d2 View commit details
    Browse the repository at this point in the history
  6. Improved code clarity

    - Added comments to tree references
    - Renamed some local tree variables to be more intuitive
    - Changed percentage progress variable type to int
    BigBoyBarney committed Jan 1, 2024
    Configuration menu
    Copy the full SHA
    5f90bcb View commit details
    Browse the repository at this point in the history
  7. Rewrote (GTK) list sorting setup

    - columns are only sorted when the header is clicked
    - Disabled sorting indicators for inactive columns
    - Centred columns and contents (except Title)
    BigBoyBarney committed Jan 1, 2024
    Configuration menu
    Copy the full SHA
    8bb4aa3 View commit details
    Browse the repository at this point in the history
  8. Sorting update

    - Slightly rewrote code for the sorting setup again
    - Fixed multiple sort indicator issue
    - Sort indicators now have uniform default direction
    BigBoyBarney committed Jan 1, 2024
    Configuration menu
    Copy the full SHA
    0a4501e View commit details
    Browse the repository at this point in the history
  9. Python 3.10

    - Bump required python version to 3.10, as 3.8 is outdated and 3.10 brings a lot of QoL changes. The "oldest" main distro is Ubuntu 22.04 and even that ships with Python 3.10 by default. Pretty much every other distro should be 3.10 or newer as well.
    BigBoyBarney committed Jan 1, 2024
    Configuration menu
    Copy the full SHA
    e0a2641 View commit details
    Browse the repository at this point in the history
  10. Increased (Qt and GTK) default window size

    - Increased window size from 740x480 to 1080x720. The default was last changed and set in 2015, which made sense back then, but it's way too small for most modern displays.
    BigBoyBarney committed Jan 1, 2024
    Configuration menu
    Copy the full SHA
    f99d68d View commit details
    Browse the repository at this point in the history
  11. Updated poetry.lock

    BigBoyBarney committed Jan 1, 2024
    Configuration menu
    Copy the full SHA
    2519561 View commit details
    Browse the repository at this point in the history
  12. Python 3.10 compliance fix

    - Replaced python >=3.11 exclusive `datetime.timezone.utc` alias `datetime.UTC`. Should run in 3.10 now.
    BigBoyBarney committed Jan 1, 2024
    Configuration menu
    Copy the full SHA
    04b303b View commit details
    Browse the repository at this point in the history

Commits on Jan 3, 2024

  1. Configuration menu
    Copy the full SHA
    5b44f70 View commit details
    Browse the repository at this point in the history

Commits on Jan 10, 2024

  1. Added best possible MAL support

    - Displays 'Next episode' for MAL, where applicable
    - Added a bunch of comments for clarity
    - Indents in `libmal.py` were cleaned up a bit
    - Renamed `header_button_press` to `header_right_click` for clarity.
    - The state of MAL is pretty sad, it does not give an actual weekly airing time, just a general broadcast schedule, so if an episode gets delayed, there is no way of knowing without 3rd party sites. This is not an issue with the code, but with MAL. Use Anilist.
    BigBoyBarney committed Jan 10, 2024
    Configuration menu
    Copy the full SHA
    6695513 View commit details
    Browse the repository at this point in the history
  2. Added best possible MAL support

    - Displays 'Next episode' for MAL, where applicable (new in Qt)
    - Added a bunch of comments for clarity
    - Indents in `libmal.py` were cleaned up a bit
    - Renamed `header_button_press` to `header_right_click` for clarity.
    - The state of MAL is pretty sad, it does not give an actual weekly airing time, just a general broadcast schedule, so if an episode gets delayed, there is no way of knowing without 3rd party sites. This is not an issue with the code, but with MAL. Use Anilist.
    BigBoyBarney committed Jan 10, 2024
    Configuration menu
    Copy the full SHA
    efbea98 View commit details
    Browse the repository at this point in the history
  3. Merge remote-tracking branch 'origin/GTK-'Next-episode-column'' into …

    …GTK-'Next-episode-column'
    BigBoyBarney committed Jan 10, 2024
    Configuration menu
    Copy the full SHA
    daf9ad4 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    088c106 View commit details
    Browse the repository at this point in the history
  5. Fixed comment typo

    BigBoyBarney committed Jan 10, 2024
    Configuration menu
    Copy the full SHA
    96facff View commit details
    Browse the repository at this point in the history