]> Some of my projects - localmylist.git/log
localmylist.git
8 years agoMark vote field with "!!" for completely watched anime without a vote
APTX [Sat, 25 Feb 2017 18:06:30 +0000 (19:06 +0100)]
Mark vote field with "!!" for completely watched anime without a vote

A red font might be better, but this would require including QColor
which would require linking to gui.

8 years agoUse enum values instead of magic numbers for columns.
APTX [Sat, 25 Feb 2017 18:05:10 +0000 (19:05 +0100)]
Use enum values instead of magic numbers for columns.

This is just to make it easier to see which column is which.

8 years agoProperly handle UNIX signals.
APTX [Sun, 29 Jan 2017 14:27:06 +0000 (15:27 +0100)]
Properly handle UNIX signals.

Very few operations can actualy be done in a signal handler.
This change follows Qt's recommendation on calling Qt functions
from UNIX signal handlers:

http://doc.qt.io/qt-5/unix-signals.html

10 years agoFilter unnecessary update notifications.
APTX [Mon, 9 Nov 2015 15:09:57 +0000 (16:09 +0100)]
Filter unnecessary update notifications.

Only updates that actually change a column will trigger a notfication.

10 years agoAll serial fields should be NOT NULL.
APTX [Mon, 9 Nov 2015 14:17:44 +0000 (15:17 +0100)]
All serial fields should be NOT NULL.

10 years agoAdd Watched Directories Tab.
APTX [Mon, 9 Nov 2015 14:11:12 +0000 (15:11 +0100)]
Add Watched Directories Tab.

The tab allows editing of watched directories. A synthetic primary key was
added to the watched_directory table to allow use with QtSQL classes.
Watched directories can now be disabled. Triggers were added to automatically
update watched directories when the table contents changes.

Database::getWatchedDirectories can now return all or only currently enabled
directories. The latter is the default.

This change requires a schema update.

10 years agoFix version dialog.
APTX [Mon, 31 Aug 2015 17:50:11 +0000 (19:50 +0200)]
Fix version dialog.

10 years agoAdd standard icons to some tab actions.
APTX [Mon, 31 Aug 2015 16:38:26 +0000 (18:38 +0200)]
Add standard icons to some tab actions.

10 years agoMake DynamicModel the main MyList tab.
APTX [Mon, 31 Aug 2015 16:37:56 +0000 (18:37 +0200)]
Make DynamicModel the main MyList tab.

10 years agoAdd windows icon.
APTX [Mon, 31 Aug 2015 16:37:00 +0000 (18:37 +0200)]
Add windows icon.

10 years agoMerge branch 'master' of ssh://aptx.org/var/git/localmylist
APTX [Mon, 31 Aug 2015 16:15:31 +0000 (18:15 +0200)]
Merge branch 'master' of ssh://aptx.org/var/git/localmylist

10 years agoRemove bogus license header.
APTX [Mon, 31 Aug 2015 16:15:23 +0000 (18:15 +0200)]
Remove bogus license header.

10 years agoAdd application category to desktop file.
APTX [Mon, 31 Aug 2015 13:05:44 +0000 (15:05 +0200)]
Add application category to desktop file.

10 years agoAdd scaled icons.
APTX [Mon, 31 Aug 2015 11:03:43 +0000 (13:03 +0200)]
Add scaled icons.

10 years agoAdd Hosts tab.
APTX [Sun, 30 Aug 2015 15:12:33 +0000 (17:12 +0200)]
Add Hosts tab.

Removing hosts is currently disabled. Editing the current
host is not handled in any special way. This means that
changes aren't immediately visible and local config will
need changes if the current host name changes.

10 years agoAdd new tab actions.
APTX [Sun, 30 Aug 2015 12:33:11 +0000 (14:33 +0200)]
Add new tab actions.

Only actions the current tab supports are enabled.

10 years agoBuild fix for Qt4.
APTX [Sun, 30 Aug 2015 11:06:03 +0000 (13:06 +0200)]
Build fix for Qt4.

10 years agoAdd Path Mapping tab.
APTX [Sun, 30 Aug 2015 10:54:44 +0000 (12:54 +0200)]
Add Path Mapping tab.

This tab lets you manage path mappings. Changes need
to be saved by clicking the "Save Change" button.

10 years agoAdd icon to desktop file
APTX [Fri, 28 Aug 2015 10:45:39 +0000 (12:45 +0200)]
Add icon to desktop file

10 years agoAdd icon and desktop file for localmylist-management.
APTX [Fri, 28 Aug 2015 10:14:07 +0000 (12:14 +0200)]
Add icon and desktop file for localmylist-management.

10 years agoTake pending MyList updates into account when choosing the first unwatched file.
APTX [Tue, 18 Aug 2015 20:13:10 +0000 (22:13 +0200)]
Take pending MyList updates into account when choosing the first unwatched file.

Pending MyList update changes are only written to the my_*
fields when a the UDP API confirms it's been set.
If the UDP API doesn't work for some reason firstUnwatchedByAid
will keep returning the same file until AniDB confirms the change.

To work around this, firstUnwatchedByAid now checks if a file isn't
queued to be marked watched right now (an update without a finished
time set). If it is, the file is treated as watched.

This only works in the simple case where a file is marked watched
by fid. It's the method MyList::markWatched uses. All other methods
aren't available outside of manually preparing a PendingMyListUpdate.

10 years agoAdd basic comment.
APTX [Mon, 17 Aug 2015 19:12:50 +0000 (21:12 +0200)]
Add basic comment.

10 years agoImplement "remove file location" context menu option.
APTX [Mon, 17 Aug 2015 19:12:01 +0000 (21:12 +0200)]
Implement "remove file location" context menu option.

FileLocationType now responds to insert/update/delete
of file locations in the database.
The Context menu option just needs to trigger the
removal via MyList.

10 years agoTry rounding the vote before casting to int.
APTX [Sat, 8 Aug 2015 18:19:32 +0000 (20:19 +0200)]
Try rounding the vote before casting to int.

10 years agoSave connection settings.
APTX [Sat, 8 Aug 2015 13:25:32 +0000 (15:25 +0200)]
Save connection settings.

10 years agoFix build with Qt5.5.
APTX [Sat, 25 Jul 2015 12:38:56 +0000 (14:38 +0200)]
Fix build with Qt5.5.

10 years agoAdd tool tip text for file location data.
APTX [Sun, 19 Jul 2015 01:06:18 +0000 (03:06 +0200)]
Add tool tip text for file location data.

The tool tip shows the original file name.

10 years agoAdd x-jat to the languages used for alternative title filtering.
APTX [Sun, 14 Jun 2015 11:19:51 +0000 (13:19 +0200)]
Add x-jat to the languages used for alternative title filtering.

x-jat has all some commonly used abbreviations.
This probably should be made configurable in the future.

10 years agoDynamicModelTab now saves its settings.
APTX [Sun, 14 Jun 2015 10:42:58 +0000 (12:42 +0200)]
DynamicModelTab now saves its settings.

The model query and filter type are saved.

10 years agoAdd new FileEpisode table to DynamicModel.
APTX [Sun, 14 Jun 2015 10:27:56 +0000 (12:27 +0200)]
Add new FileEpisode table to DynamicModel.

This new table shows all files related to an episode
and not just the files for which an episode is the
main episode.

To get all episodes a UNION is needed over file and file
joined with file_episode_rel, but Dynamic Model's query
builder does not support building such queries. The
workaround is to do the UNION in a view and query it
instead.

File will be changed to what FileEpisode does in the
future as it was File's intended behaviour.

10 years agoEnsure that AddFileTask is atomic.
APTX [Thu, 4 Jun 2015 20:25:55 +0000 (22:25 +0200)]
Ensure that AddFileTask is atomic.

10 years agoAdd MyList::playFile
APTX [Sun, 31 May 2015 10:18:03 +0000 (12:18 +0200)]
Add MyList::playFile

This method opens the file from OpenFileData
in a video player. play-next now uses this method.
It is available in the scripting API.

10 years agoRemove unnecessary dependency on scripttools.
APTX [Mon, 23 Mar 2015 22:07:34 +0000 (23:07 +0100)]
Remove unnecessary dependency on scripttools.

10 years agoImplement the quit action.
APTX [Mon, 23 Mar 2015 22:04:43 +0000 (23:04 +0100)]
Implement the quit action.

10 years agoMerge branch 'master' of ssh://aptx.org/var/git/localmylist
APTX [Sun, 8 Feb 2015 10:38:42 +0000 (11:38 +0100)]
Merge branch 'master' of ssh://aptx.org/var/git/localmylist

10 years agoRemove redundant select all/clear selection buttons from the Pending Requests tab.
APTX [Sun, 8 Feb 2015 10:37:55 +0000 (11:37 +0100)]
Remove redundant select all/clear selection buttons from the Pending Requests tab.

Select All/Clear Selection is already in the main tool bar.

10 years agoFix Qt5 build failure on linux.
APTX [Tue, 27 Jan 2015 11:13:10 +0000 (12:13 +0100)]
Fix Qt5 build failure on linux.

10 years agoFix clang warnings.
APTX [Sun, 25 Jan 2015 17:34:22 +0000 (18:34 +0100)]
Fix clang warnings.

10 years agoFix Qt4 build.
APTX [Sun, 25 Jan 2015 17:12:24 +0000 (18:12 +0100)]
Fix Qt4 build.

Signals are protected in Qt4.

10 years agofixup! Add QVariant comparison for Qt4 builds.
APTX [Sun, 25 Jan 2015 16:31:47 +0000 (17:31 +0100)]
fixup! Add QVariant comparison for Qt4 builds.

10 years agoAdd QVariant comparison for Qt4 builds.
APTX [Sun, 25 Jan 2015 15:31:57 +0000 (16:31 +0100)]
Add QVariant comparison for Qt4 builds.

You should be using Qt5 anyway.

10 years agoRemove non-existent files.
APTX [Sun, 25 Jan 2015 15:18:34 +0000 (16:18 +0100)]
Remove non-existent files.

10 years agoAdd new version of DynamicModel.
APTX [Sun, 25 Jan 2015 11:12:12 +0000 (12:12 +0100)]
Add new version of DynamicModel.

The intention is to replace MyListModel with DynamicModel completely in the
future. Currently MyListModel still does some things DynamicModel can't do,
but it should be a replacement for most use cases.

DynamicModel reacts to changes in the database (if built with Qt5) including
deletions.

New features:
* Filter Anime by alternate titles (if anime is the first level)
* Special episode counts are separated from normal episode counts

11 years agoAllow using the return key to open files in MyList TreeView.
APTX [Wed, 5 Nov 2014 23:11:58 +0000 (00:11 +0100)]
Allow using the return key to open files in MyList TreeView.

It was already possible to open files with the return key from
the filter box, but not when navigating the actual TreeView.

11 years agoJust set the state in the destructor and assume the service manages to cleanup on...
APTX [Sun, 2 Nov 2014 16:46:56 +0000 (17:46 +0100)]
Just set the state in the destructor and assume the service manages to cleanup on it's own.

stop/deinitialize call virtual functions which does not work in destructors.
Another option would be to require services to call some "destroy" method in their own destructor.

11 years agoAdd RaiiMyList.
APTX [Sun, 28 Sep 2014 13:48:37 +0000 (15:48 +0200)]
Add RaiiMyList.

RaiiMyList is a "threadsafe" way of using LocalMyList.

11 years agoAdd nextEpisode and previousEpisode.
APTX [Sat, 16 Aug 2014 15:42:13 +0000 (17:42 +0200)]
Add nextEpisode and previousEpisode.

The intended use is for players requesting a file
for the next/previous episode in a series.

11 years agoAdd option to hide watched episodes.
APTX [Sun, 13 Jul 2014 15:32:12 +0000 (17:32 +0200)]
Add option to hide watched episodes.

If all episodes of an anime are watched
and myListHideEmptyAnime is true the anime
is hidden as well.

11 years agoRemove incorrect signal/slot connections.
APTX [Sun, 22 Jun 2014 21:44:10 +0000 (23:44 +0200)]
Remove incorrect signal/slot connections.

11 years agoA service's initial state should be Uninitialized not Stopped state.
APTX [Sun, 22 Jun 2014 16:12:13 +0000 (18:12 +0200)]
A service's initial state should be Uninitialized not Stopped state.

11 years agofixup! Correct stateChanged signal signature.
APTX [Sun, 22 Jun 2014 15:50:40 +0000 (17:50 +0200)]
fixup! Correct stateChanged signal signature.

11 years agoCorrect stateChanged signal signature.
APTX [Sun, 22 Jun 2014 15:44:14 +0000 (17:44 +0200)]
Correct stateChanged signal signature.

11 years agoMerge branch 'master' of ssh://aptx.org/var/git/localmylist
APTX [Sun, 22 Jun 2014 09:43:08 +0000 (11:43 +0200)]
Merge branch 'master' of ssh://aptx.org/var/git/localmylist

11 years agoAdd Service and ServiceManager.
APTX [Sun, 22 Jun 2014 09:36:59 +0000 (11:36 +0200)]
Add Service and ServiceManager.

LML has 3 "services": RequestHandler, RenameHandler and DirectoryWatcher.
Now they have a common base class and a manager.

11 years agoFix query for myListSearch.
APTX [Sat, 15 Mar 2014 15:14:53 +0000 (16:14 +0100)]
Fix query for myListSearch.

11 years agoAdd myListSearch* methods.
APTX [Sat, 15 Mar 2014 15:05:47 +0000 (16:05 +0100)]
Add myListSearch* methods.

These allow for title search simmilar to animeSearch* but limit the
results to entries in your MyList

11 years agoCheck if workThread exists before trying to access it.
APTX [Sat, 15 Mar 2014 13:22:48 +0000 (14:22 +0100)]
Check if workThread exists before trying to access it.

This can only happen if workThread wasn't created and you're trying to
get a Database from a wrong thread.

11 years agoMissing changes from 75b97dfc2db6aa00090f5696e86dfac0be4483ca
APTX [Fri, 14 Feb 2014 18:03:02 +0000 (19:03 +0100)]
Missing changes from 75b97dfc2db6aa00090f5696e86dfac0be4483ca

11 years agoUpdate filter bar arrow key selection.
APTX [Tue, 11 Feb 2014 20:18:57 +0000 (21:18 +0100)]
Update filter bar arrow key selection.

Do not track the selected index independently of the selection model.

This is the first commit using uniform initialization. This means a C++11 compiler at least as good as VS2013 is required to build LML.

12 years agoFix macro typo.
APTX [Wed, 11 Dec 2013 20:35:27 +0000 (21:35 +0100)]
Fix macro typo.

It's nice msvc doesn't even issue a warning.

12 years agoAdd placeholder text for search/filter fields.
APTX [Wed, 11 Dec 2013 20:28:01 +0000 (21:28 +0100)]
Add placeholder text for search/filter fields.

Add clear button to search/filter (Qt5.2 required)

12 years agoAdd Part rename variable.
APTX [Sun, 6 Oct 2013 17:07:31 +0000 (19:07 +0200)]
Add Part rename variable.

Some files represent only a part of an episode. These files will not
differ by Anime/Episode name, number or type. The Part variable
allows to distinguish such files.

12 years agoAdditional mark watched helper functions.
APTX [Thu, 3 Oct 2013 18:49:57 +0000 (20:49 +0200)]
Additional mark watched helper functions.

markWatchedIfUnwatched marks a file watched only if it is unwatched. This can prevent changing an already set view date.
markUnwatched marks a file unwatched. This is exposed in the mylist view.

12 years agoAdd "Rename as Video File" feature.
APTX [Sun, 29 Sep 2013 14:11:25 +0000 (16:11 +0200)]
Add "Rename as Video File" feature.

This feature allows you to rename subtitle files the same way as video files.
This is useful as video players usually look for subtitle files which are named the same way as a video file.

12 years agoSet the application_name PG connection option.
APTX [Wed, 18 Sep 2013 18:40:48 +0000 (20:40 +0200)]
Set the application_name PG connection option.

This helps debugging as it gives different names to
all connections LML establishes.

12 years agoFix notification subscribing/unsubscribing.
APTX [Wed, 18 Sep 2013 18:26:17 +0000 (20:26 +0200)]
Fix notification subscribing/unsubscribing.

12 years agoAdd active connection checking.
APTX [Wed, 18 Sep 2013 18:16:36 +0000 (20:16 +0200)]
Add active connection checking.

QtSQL (pg driver) does not send any notification that the connection
to the database has terminated. LML tries to reconnect if a query
fails with a connection error. That check is not sufficient for the
objects that wait for DB notifications. This solution checks if the
connection is still alive by executing a simple query every minute.
If the query fails on a connection error the reconnect mechanism
triggers as before. A new reconnected() signal is emitted when a
reconnect occurs. The active connection checking is only done in
the main thread. Request-/Rename-handler listen for the new signal.

12 years agoSlight syntax highlighter adjustments.
APTX [Wed, 18 Sep 2013 17:43:45 +0000 (19:43 +0200)]
Slight syntax highlighter adjustments.

12 years agoBetter color scheme for the AniAdd script syntax highlighter
APTX [Sat, 31 Aug 2013 18:00:45 +0000 (20:00 +0200)]
Better color scheme for the AniAdd script syntax highlighter

12 years agoMake the search tab use the same search query as the anime search functions.
APTX [Sat, 31 Aug 2013 17:59:49 +0000 (19:59 +0200)]
Make the search tab use the same search query as the anime search functions.

12 years agoMore build fixes.
APTX [Sat, 31 Aug 2013 16:14:35 +0000 (18:14 +0200)]
More build fixes.

12 years agoBuild fixes.
APTX [Sat, 31 Aug 2013 16:04:21 +0000 (18:04 +0200)]
Build fixes.

12 years agoAdd openEpisode method to to open a specific episode.
APTX [Sat, 31 Aug 2013 15:54:01 +0000 (17:54 +0200)]
Add openEpisode method to to open a specific episode.

12 years agoFix compiling with Qt4.
APTX [Sat, 31 Aug 2013 15:44:02 +0000 (17:44 +0200)]
Fix compiling with Qt4.

12 years agoAdd Anime Search functions.
APTX [Sat, 31 Aug 2013 15:43:35 +0000 (17:43 +0200)]
Add Anime Search functions.

12 years agoExpose a print function to JS in lml-runscript.
APTX [Sat, 31 Aug 2013 15:28:40 +0000 (17:28 +0200)]
Expose a print function to JS in lml-runscript.

12 years agoInitial version of dynamic model.
APTX [Sat, 31 Aug 2013 10:19:32 +0000 (12:19 +0200)]
Initial version of dynamic model.

12 years agoFix updateFilesFromPendingMyListUpdate accidentally using set_my_watched for setting...
APTX [Sat, 6 Jul 2013 11:04:59 +0000 (13:04 +0200)]
Fix updateFilesFromPendingMyListUpdate accidentally using set_my_watched for setting the state.

This caused files to flip in state to unknown (in lml only) when marking episodes/anime as watched.

12 years agoRequest FileFlag::MyListViewed for better view date parsing.
APTX [Sat, 15 Jun 2013 22:36:21 +0000 (00:36 +0200)]
Request FileFlag::MyListViewed for better view date parsing.

12 years agoAdd rule to notify new_pending_request on update.
APTX [Sat, 8 Jun 2013 22:21:40 +0000 (00:21 +0200)]
Add rule to notify new_pending_request on update.

This notifies when a failed request can be retried.

12 years agoProper word boundaries around builtin variables.
APTX [Sat, 8 Jun 2013 22:12:56 +0000 (00:12 +0200)]
Proper word boundaries around builtin variables.

12 years agoAdd line numbers to the rename script editor.
APTX [Thu, 6 Jun 2013 15:11:25 +0000 (17:11 +0200)]
Add line numbers to the rename script editor.

This uses code from a Qt example of a code editor.

12 years agoAdd availableSettings method.
APTX [Thu, 6 Jun 2013 14:52:29 +0000 (16:52 +0200)]
Add availableSettings method.

12 years agoAdd a very basic Settings Dialog to edit settings stored in the DB.
APTX [Thu, 6 Jun 2013 14:46:27 +0000 (16:46 +0200)]
Add a very basic Settings Dialog to edit settings stored in the DB.

Currently shows everything in a plain line edit, including the password.

12 years agoFix include. Again...
APTX [Thu, 6 Jun 2013 00:47:30 +0000 (02:47 +0200)]
Fix include. Again...

12 years agoFix include.
APTX [Thu, 6 Jun 2013 00:42:41 +0000 (02:42 +0200)]
Fix include.

12 years agoAdd syntax highlighting for AniAdd scripts.
APTX [Thu, 6 Jun 2013 00:38:18 +0000 (02:38 +0200)]
Add syntax highlighting for AniAdd scripts.

The colors are not final.

12 years agoAdd support for nested database transactions.
APTX [Wed, 5 Jun 2013 12:32:50 +0000 (14:32 +0200)]
Add support for nested database transactions.

12 years agoBetter way of setting monospace fonts.
APTX [Tue, 4 Jun 2013 18:39:28 +0000 (20:39 +0200)]
Better way of setting monospace fonts.

12 years agoFix how requests failed with data errors interacts with failing requests from old...
APTX [Tue, 4 Jun 2013 18:32:15 +0000 (20:32 +0200)]
Fix how requests failed with data errors interacts with failing requests from old clients.

Failing requests from old clients ignores failed requests. Failing a request with a data error sets the client_id to 0.

12 years agoPrefix type with namespace name, for script bindings.
APTX [Tue, 4 Jun 2013 18:30:00 +0000 (20:30 +0200)]
Prefix type with namespace name, for script bindings.

12 years agoUse monospace fonts in the script editor and client log tab.
APTX [Tue, 4 Jun 2013 18:13:46 +0000 (20:13 +0200)]
Use monospace fonts in the script editor and client log tab.

12 years agoFix messagehandler for Qt4.
APTX [Tue, 4 Jun 2013 17:58:55 +0000 (19:58 +0200)]
Fix messagehandler for Qt4.

12 years agoAdd simple client log tab.
APTX [Tue, 4 Jun 2013 17:50:07 +0000 (19:50 +0200)]
Add simple client log tab.

Displays whatever gets printed to (usually) stderr starting from the time the tab was opened.

12 years agoAdd basic log viewer tab.
APTX [Tue, 4 Jun 2013 17:27:56 +0000 (19:27 +0200)]
Add basic log viewer tab.

12 years agoClarify Request Data label in MyList view context menu.
APTX [Tue, 4 Jun 2013 01:45:41 +0000 (03:45 +0200)]
Clarify Request Data label in MyList view context menu.

12 years agoA more complete connection settings dialog.
APTX [Mon, 3 Jun 2013 23:50:27 +0000 (01:50 +0200)]
A more complete connection settings dialog.

The settings aren't set yet.

12 years agoFix clearPendingRequestDataErrors.
APTX [Mon, 3 Jun 2013 13:52:57 +0000 (15:52 +0200)]
Fix clearPendingRequestDataErrors.

clearPendingRequestDataErrors increments data_error_count so it should start with 0, not 1.

12 years agoDisable deletion of pending requests.
APTX [Sun, 2 Jun 2013 23:54:08 +0000 (01:54 +0200)]
Disable deletion of pending requests.

This is actually quite dangerous. Requests for Unknown Files already get deleted when the Unknown File is deleted. Other requests may be vital for LML to be able to rename/display files.

12 years agoRename resetPendingRequestErrorCount => resetPendingRequest
APTX [Sun, 2 Jun 2013 23:49:13 +0000 (01:49 +0200)]
Rename resetPendingRequestErrorCount => resetPendingRequest