CLI interface to medialist (fossil mirror)
Revision | ec203fcc9ae92b8a6b939408c411defbbebfce76 (tree) |
---|---|
Time | 2023-04-06 19:53:04 |
Author | mio <stigma@disr...> |
Commiter | mio |
0.4 release commit
FossilOrigin-Name: fe8fd62036270b304582473103fa3d72ab27006058649a998ef7373fa7bacc2b
@@ -1,109 +0,0 @@ | ||
1 | -#!/bin/sh | |
2 | -# --------------------------------------------------------------------- | |
3 | -# Copyright (C) 2021, 2022 mio <stigma@disroot.org> | |
4 | -# | |
5 | -# Copying and distribution of this file, with or without modification, | |
6 | -# are permitted in any medium without royalty, provided the copyright | |
7 | -# notice and this notice are preserved. This file is offered as-is, | |
8 | -# without any warranty. | |
9 | -# | |
10 | -# This file should work with every D compiler. | |
11 | -# | |
12 | -# --------------------------------------------------------------------- | |
13 | -set -e | |
14 | -set -x | |
15 | - | |
16 | -ARCH="$(uname -m)" | |
17 | -APPIMAGETOOL="appimagetool-$ARCH.AppImage" | |
18 | -OUTPUTFILE="medialist-cli-$ARCH.AppImage" | |
19 | -_DC="$(grep -E '^DC' Makefile | cut -d'=' -f2 | sed -e 's/^[ \t]*//')" | |
20 | -_DFLAGS="$(grep -E '^DFLAGS' Makefile | cut -d'=' -f2 | sed -e 's/^[ \t]*//')" | |
21 | - | |
22 | -# Use any environment variables over the Makefile | |
23 | -if [ ! "" = "$DC" ] | |
24 | -then | |
25 | - _DC="$DC" | |
26 | -fi | |
27 | - | |
28 | -if [ ! "" = "$DFLAGS" ] | |
29 | -then | |
30 | - _DFLAGS="$DFLAGS" | |
31 | -fi | |
32 | - | |
33 | -if [ "--clean" = "$1" ] | |
34 | -then | |
35 | - rm -rf "$APPIMAGETOOL" "AppDir" "$OUTPUTFILE" "$OUTPUTFILE.tar.lz" | |
36 | - make clean | |
37 | - exit 0 | |
38 | -fi | |
39 | - | |
40 | -# The Makefile no longer automatically creates the directory. | |
41 | -# mkdir -p may not be supported on all platforms. | |
42 | -if [ ! -d "AppDir" ] | |
43 | -then | |
44 | - mkdir "AppDir" | |
45 | - mkdir "AppDir/usr" | |
46 | - mkdir "AppDir/usr/bin" | |
47 | - mkdir "AppDir/usr/share" | |
48 | - mkdir "AppDir/usr/share/man" | |
49 | - mkdir "AppDir/usr/share/man/man1" | |
50 | - mkdir "AppDir/usr/lib" | |
51 | -fi | |
52 | - | |
53 | -if [ "gdc" = "$_DC" ] | |
54 | -then | |
55 | - _DFLAGS="$_DFLAGS -fversion=appimage" | |
56 | -elif [ "ldc2" = "$_DC" ] | |
57 | -then | |
58 | - _DFLAGS="$_DFLAGS --d-version=appimage" | |
59 | -elif [ "dmd" = "$_DC" ] | |
60 | -then | |
61 | - _DFLAGS="$_DFLAGS -version=appimage" | |
62 | -fi | |
63 | - | |
64 | -# Build the executable | |
65 | -# -B so the "appimage" version is build for everything. | |
66 | -make install DESTDIR=AppDir prefix=/usr DC="$_DC" DFLAGS="${_DFLAGS}" -j$(nproc) -B | |
67 | - | |
68 | -if [ ! -e "$APPIMAGETOOL" ] | |
69 | -then | |
70 | - wget -q "https://github.com/AppImage/AppImageKit/releases/download/continuous/$APPIMAGETOOL" | |
71 | - chmod u+x "$APPIMAGETOOL" | |
72 | -fi | |
73 | - | |
74 | -cat << EOF > "AppDir/medialist-cli.desktop" | |
75 | -[Desktop Entry] | |
76 | -Name=medialist-cli | |
77 | -Icon=medialist-cli | |
78 | -Categories=Utility; | |
79 | -Type=Application | |
80 | -Terminal=true | |
81 | -Exec=medialist-cli | |
82 | -EOF | |
83 | - | |
84 | -cp res/medialist-cli.png AppDir/ | |
85 | - | |
86 | -cat <<'EOF' > "AppDir/AppRun" | |
87 | -#!/bin/sh | |
88 | - | |
89 | -export APPDIR="$(dirname "$(readlink -f "$0")")" | |
90 | -export PATH="$APPDIR/usr/bin:$PATH" | |
91 | -export LD_LIBRARY_PATH="$APPDIR/usr/lib:$LD_LIBRARY_PATH" | |
92 | - | |
93 | -"$APPDIR/usr/bin/medialist-cli" $@ | |
94 | -EOF | |
95 | - | |
96 | -chmod a+x AppDir/AppRun | |
97 | - | |
98 | -# Find and copy D shared libraries | |
99 | -PHOBOS="$(ldd medialist-cli | grep phobos | cut -d' ' -f3)" | |
100 | -cp "$PHOBOS" "AppDir/usr/lib/$(basename "$PHOBOS")" | |
101 | - | |
102 | -# GDC doesn't link with a druntime? | |
103 | -if [ ! "gdc" = "$_DC" ] | |
104 | -then | |
105 | - DRUNTIME="$(ldd medialist-cli | grep druntime | cut -d' ' -f3)" | |
106 | - cp "$DRUNTIME" "AppDir/usr/lib/$(basename "$DRUNTIME")" | |
107 | -fi | |
108 | - | |
109 | -./$APPIMAGETOOL "AppDir/" |
@@ -1,3 +1,54 @@ | ||
1 | +- 0.4 [2023-04-06] - | |
2 | + | |
3 | +It's time for another release of medialist/medialist-cli. It's been | |
4 | +a while (over a year!) which was largely unintentionally, but that's | |
5 | +the way life goes. Anyway, for the most part medialist-cli should | |
6 | +be complete. There are probably some bugs that need to be discovered | |
7 | +and fixed, and there should be some more error handling, but in terms | |
8 | +of features... it's pretty much done. Maybe a little more user-friendly | |
9 | +enhancements. Anyway, here is the list of notable changes: | |
10 | + | |
11 | +MediaList (CLI): | |
12 | + | |
13 | + * Add command to export lists to JSON and HTML tables. | |
14 | + * Add command to import lists from JSON. | |
15 | + * Add basic debugging (logs trashed every month). | |
16 | + * Changed preference storage format (INI -> CNI). | |
17 | + * Changed 'delete' command to send lists to recycle bin, rather than | |
18 | + erasing them from the operating system. | |
19 | + * Changed default answer for confimation prompt when deleting a list | |
20 | + or an item from a list to be 'no'. | |
21 | + * Fix issue where medialist would remove trailing whitespace on a mTSV | |
22 | + line (resulting in a runtime crash). | |
23 | + * Provide an option to build the program using DUB. | |
24 | + | |
25 | +MediaList: | |
26 | + | |
27 | + * Add MediaListItem.tsvRepresentation which formats a MediaListItem in | |
28 | + to a mTSV compatible string. | |
29 | + * Add opCmp to MediaListItem which determines whether an item was | |
30 | + updated more recently than another (i.e. based on lastUpdated). | |
31 | + * Improved embedded documentation. Every public symbol has some form | |
32 | + of documentation. | |
33 | + * Add 'nothrow' variants of public functions. NOTE: This will break | |
34 | + almost everything, but the fixes are easy. | |
35 | + * Fix incorrect handling of ml_fetch_item with index 0 | |
36 | + | |
37 | +A full copy of the fossil timeline between 0.3 and 0.4 is provided in | |
38 | +the changelogs directory. | |
39 | + | |
40 | +The plan from here is to move medialist in to a separate repository | |
41 | +(medialist-d) and clean up some of the code for MediaList CLI. Ideally | |
42 | +I'd like to begin work on a GUI version of MediaList, which would help | |
43 | +expand (or just refine) the medialist library. | |
44 | + | |
45 | +There is still the intention of writing medialist in another language, | |
46 | +but that should be a separate concern now, as it's purpose would be | |
47 | +to expand the OS support (e.g. ReactOS, Haiku). | |
48 | + | |
49 | +Until next ye^H^H^H time. | |
50 | + | |
51 | + | |
1 | 52 | - 0.3 [2022-02-13] - |
2 | 53 | |
3 | 54 | The third tagged release. Again, this is primarily involves internal cleanup. |
@@ -82,4 +133,3 @@ put: it supports metadata/configuration. | ||
82 | 133 | Currently this is _not_ the default storage format for medialist, but it will |
83 | 134 | be in the future so that the GUI applications can make use of extended |
84 | 135 | functionality. |
85 | - |
@@ -7,9 +7,9 @@ A CLI program for managing a "personal media list". | ||
7 | 7 | Building |
8 | 8 | -------- |
9 | 9 | |
10 | -To build medialist-cli, you need a D compiler and GNU Make. By default | |
11 | -the provided Makefile will use the GDC compiler, this can be changed | |
12 | -using the "DC" environment variable. | |
10 | +To build medialist-cli, you need a D compiler and either GNU Make or dub. | |
11 | +By default the provided Makefile will use the GDC compiler, this can be | |
12 | +changed using the "DC" environment variable. | |
13 | 13 | |
14 | 14 | For more information on installing, see the INSTALL file. |
15 | 15 |
@@ -0,0 +1,544 @@ | ||
1 | + | |
2 | +2023-04-06 10:44:13 mio | |
3 | + Update documentation for v0.4 | |
4 | + | |
5 | + EDITED INSTALL | |
6 | + EDITED docs/medialist.info | |
7 | + EDITED man/medialist-cli.1 | |
8 | + | |
9 | +2023-04-06 10:17:12 mio | |
10 | + Better support alternative compilers in Makefile | |
11 | + | |
12 | + EDITED Makefile | |
13 | + | |
14 | +2023-04-06 02:34:50 mio | |
15 | + Update mlib files for trash 0.3.0 | |
16 | + | |
17 | + EDITED dub.sdl | |
18 | + DELETED mlib/source/mlib/configparser.d | |
19 | + DELETED mlib/source/mlib/package.d | |
20 | + EDITED mlib/source/mlib/trash.d | |
21 | + EDITED update_deps.sh | |
22 | + | |
23 | +2023-04-06 02:24:42 mio | |
24 | + Update mlib hashes for trash-0.3.0 | |
25 | + | |
26 | + EDITED dub.sdl | |
27 | + EDITED update_deps.sh | |
28 | + | |
29 | +2023-04-05 10:36:08 mio | |
30 | + Fix instances of writeln being called with a format specifier. | |
31 | + | |
32 | + EDITED main.d | |
33 | + | |
34 | +2023-04-05 10:24:29 mio | |
35 | + Fix FileException being thrown on Windows. | |
36 | + | |
37 | + EDITED medialist.d | |
38 | + | |
39 | +2023-04-05 10:10:58 mio | |
40 | + Fix compilation with D versions 2.101 and newer sharedLog now requires a shared Logger, which is fine, except none of the provided classes which inherit from Logger provide a shared constructor... so for the purposes of medialist-cli, stdThreadLocalLog provides the same functionality while being restricted to the thread that medialist-cli uses. | |
41 | + | |
42 | + EDITED main.d | |
43 | + | |
44 | +2023-04-04 07:04:07 mio | |
45 | + Update mlib version in dub.sdl | |
46 | + | |
47 | + EDITED dub.sdl | |
48 | + | |
49 | +2023-04-04 06:44:20 mio | |
50 | + Update date on manpage | |
51 | + | |
52 | + EDITED man/medialist-cli.1 | |
53 | + | |
54 | +2023-04-04 06:40:02 mio | |
55 | + Finish updating medialist info document for version 0.4 | |
56 | + | |
57 | + EDITED docs/medialist.info | |
58 | + | |
59 | +2023-04-04 06:08:37 mio | |
60 | + Change ml_open_list (nothrow) to call ml_open_list (throw). Change mentions of version 0.2.0/0.4.0 to 0.4.0 to match medialist-cli. | |
61 | + | |
62 | + EDITED medialist.d | |
63 | + | |
64 | +2023-03-30 04:05:32 mio | |
65 | + Update documentation for 0.4 release. Still some work to do. | |
66 | + | |
67 | + EDITED docs/medialist.info | |
68 | + EDITED medialist.d | |
69 | + | |
70 | +2023-03-28 07:28:12 mio | |
71 | + Update main.d to remove deprecation warnings from mlib | |
72 | + | |
73 | + EDITED .fossil-settings/ignore-glob | |
74 | + EDITED main.d | |
75 | + | |
76 | +2023-03-28 07:12:03 mio | |
77 | + Update mlib | |
78 | + | |
79 | + ADDED mlib/LICENSE | |
80 | + ADDED mlib/README | |
81 | + EDITED mlib/dub.sdl | |
82 | + EDITED mlib/source/mlib/cni.d | |
83 | + ADDED mlib/source/mlib/configparser.d | |
84 | + EDITED mlib/source/mlib/directories.d | |
85 | + ADDED mlib/source/mlib/package.d | |
86 | + EDITED mlib/source/mlib/trash.d | |
87 | + EDITED update_deps.sh | |
88 | + | |
89 | +2023-03-16 07:49:32 mio | |
90 | + Begin updating texinfo document for MediaList | |
91 | + | |
92 | + EDITED docs/medialist.info | |
93 | + | |
94 | +2023-03-16 06:56:03 mio | |
95 | + Fixed ticket [bfee801f4aa0e395|bfee801f4a]: <i>Document "import" command</i> plus 6 other changes | |
96 | + | |
97 | + | |
98 | +2023-03-16 06:54:59 mio | |
99 | + Mention shortfall of import command in manpage | |
100 | + | |
101 | + EDITED man/medialist-cli.1 | |
102 | + | |
103 | +2023-03-16 06:45:51 mio | |
104 | + Update manpage to include 'import' and 'export' command. Prepare for version 0.4. | |
105 | + | |
106 | + EDITED man/medialist-cli.1 | |
107 | + | |
108 | +2023-03-14 02:03:21 mio | |
109 | + Fixed ticket [9bdbc059bb4fed4d|9bdbc059bb]: <i>Add nothrow variants of public functions</i> plus 6 other changes | |
110 | + | |
111 | + | |
112 | +2023-03-14 01:59:44 mio | |
113 | + Update unittests to use nothrow version of ml_send_command | |
114 | + | |
115 | + EDITED unittests.d | |
116 | + | |
117 | +2023-03-14 01:19:57 mio | |
118 | + Fix missing import | |
119 | + | |
120 | + EDITED medialist.d | |
121 | + | |
122 | +2023-03-14 01:19:18 mio | |
123 | + Update main.d to use nothrow ml_send_command | |
124 | + | |
125 | + EDITED main.d | |
126 | + | |
127 | +2023-03-14 01:15:17 mio | |
128 | + Add nothrow version of ml_send_command | |
129 | + | |
130 | + EDITED medialist.d | |
131 | + | |
132 | +2023-03-14 00:50:26 mio | |
133 | + Fixed ticket [6518ca25e45b8a9c|6518ca25e4]: <i>Use system recycle bin</i> plus 4 other changes | |
134 | + | |
135 | + | |
136 | +2023-03-12 10:48:30 mio | |
137 | + Ticket [02716e1cd1e7f505|02716e1cd1] <i>0.4 Checklist</i> status still Open with 3 other changes | |
138 | + | |
139 | + | |
140 | +2023-03-12 10:48:08 mio | |
141 | + Ticket [02716e1cd1e7f505|02716e1cd1] <i></i> status still Open with 7 other changes | |
142 | + | |
143 | + | |
144 | +2023-03-12 09:56:11 mio | |
145 | + Make the changes to use "mlib" rather than stray files. | |
146 | + | |
147 | + EDITED Makefile | |
148 | + DELETED cni.d | |
149 | + DELETED directories.d | |
150 | + EDITED dub.sdl | |
151 | + EDITED main.d | |
152 | + ADDED mlib/dub.sdl | |
153 | + ADDED mlib/source/mlib/cni.d | |
154 | + ADDED mlib/source/mlib/directories.d | |
155 | + ADDED mlib/source/mlib/trash.d | |
156 | + DELETED trash.d | |
157 | + | |
158 | +2023-03-12 08:24:29 mio | |
159 | + Fix compile error when running tests on dmd and ldc2 | |
160 | + | |
161 | + EDITED unittests.d | |
162 | + | |
163 | +2023-03-12 08:23:53 mio | |
164 | + Add mlib dependency to dub.sdl and change it so "dub test" works as expected | |
165 | + | |
166 | + EDITED dub.sdl | |
167 | + | |
168 | +2023-03-12 08:12:58 mio | |
169 | + Closed ticket [bb353ab5de98c466|bb353ab5de]: <i>Remove custom testing</i> plus 7 other changes | |
170 | + | |
171 | + | |
172 | +2023-03-12 07:29:35 mio | |
173 | + Add update_deps script | |
174 | + | |
175 | + ADDED update_deps.sh | |
176 | + | |
177 | +2023-03-11 11:59:53 mio | |
178 | + New ticket [59db253b3640279b|59db253b36] <i>How to handle "Re-(read|watch)ing"</i>. | |
179 | + | |
180 | + | |
181 | +2023-03-11 11:10:25 mio | |
182 | + New ticket [bb353ab5de98c466|bb353ab5de] <i>Remove custom testing</i>. | |
183 | + | |
184 | + | |
185 | +2023-03-11 10:20:49 mio | |
186 | + Replace ml_medialistitem_to_string with .tsvRepresentation() | |
187 | + | |
188 | + EDITED main.d | |
189 | + | |
190 | +2023-03-11 10:19:52 mio | |
191 | + New ticket [02716e1cd1e7f505|02716e1cd1] <i>Remove ml_medialistitem_to_string v0.4</i>. | |
192 | + | |
193 | + | |
194 | +2023-03-11 10:04:34 mio | |
195 | + change _ml_get_header_positions return type to size_t[2][6] to address deprecation | |
196 | + | |
197 | + EDITED medialist.d | |
198 | + | |
199 | +2023-03-11 09:18:23 mio | |
200 | + Remove redundant 'index' from foreach | |
201 | + | |
202 | + EDITED medialist.d | |
203 | + | |
204 | +2023-03-11 09:00:28 mio | |
205 | + Add MediaListItem.tsvRepresentation to replace ml_medialistitem_to_string | |
206 | + | |
207 | + EDITED medialist.d | |
208 | + | |
209 | +2023-03-11 08:58:24 mio | |
210 | + Fix ml_fetch_items change | |
211 | + | |
212 | + EDITED main.d | |
213 | + | |
214 | +2023-03-09 06:26:04 mio | |
215 | + Fixed ticket [d247886e46dc2aad|d247886e46]: <i>ml_fetch_item index 0 report item not found.</i> plus 4 other changes | |
216 | + | |
217 | + | |
218 | +2023-03-09 05:50:21 mio | |
219 | + Fix ml_fetch_item with index 0 "finding" an item when it's not a valid item ID (d247886e46) | |
220 | + | |
221 | + EDITED medialist.d | |
222 | + EDITED unittests.d | |
223 | + | |
224 | +2023-03-09 05:38:20 mio | |
225 | + Ticket [6c5be320b2d4c803|6c5be320b2] <i>Add tests for ml_delete</i> status still Fixed with 3 other changes | |
226 | + | |
227 | + | |
228 | +2023-03-09 05:38:05 mio | |
229 | + Fixed ticket [6c5be320b2d4c803|6c5be320b2]: <i>Add tests for ml_delete</i> plus 6 other changes | |
230 | + | |
231 | + | |
232 | +2023-03-09 05:36:14 mio | |
233 | + Add some unittests for delete Ticket: 6c5be320b2 | |
234 | + | |
235 | + EDITED unittests.d | |
236 | + | |
237 | +2023-03-09 04:45:37 mio | |
238 | + Add nothrow version of ml_fetch_items | |
239 | + | |
240 | + EDITED medialist.d | |
241 | + EDITED unittests.d | |
242 | + | |
243 | +2023-03-09 02:43:52 mio | |
244 | + Ticket [d247886e46dc2aad|d247886e46] <i>ml_fetch_item index 0 report item not found.</i> status still Open with 5 other changes | |
245 | + | |
246 | + | |
247 | +2023-03-09 02:43:38 mio | |
248 | + New ticket [d247886e46dc2aad|d247886e46] <i>ml_fetch_item index 0 report item not found.</i>. | |
249 | + | |
250 | + | |
251 | +2023-03-09 02:15:15 mio | |
252 | + Closed ticket [1568abea45d45b17|1568abea45]: <i>Check MLCommand.update_ automatically updates end_date</i> plus 4 other changes | |
253 | + | |
254 | + | |
255 | +2023-03-09 02:04:06 mio | |
256 | + Update unittests for nothrow versions | |
257 | + | |
258 | + EDITED unittests.d | |
259 | + | |
260 | +2023-03-09 00:24:15 mio | |
261 | + New ticket [bfee801f4aa0e395|bfee801f4a] <i>Document "import" command</i>. | |
262 | + | |
263 | + | |
264 | +2023-03-08 23:51:57 mio | |
265 | + New ticket [6c5be320b2d4c803|6c5be320b2] <i>Add tests for ml_delete</i>. | |
266 | + | |
267 | + | |
268 | +2023-03-08 23:50:49 mio | |
269 | + New ticket [9bdbc059bb4fed4d|9bdbc059bb] <i>Add nothrow variants of public functions</i>. | |
270 | + | |
271 | + | |
272 | +2023-03-05 11:20:06 mio | |
273 | + Ticket [1568abea45d45b17|1568abea45] <i>Check MLCommand.update_ automatically updates end_date</i> status still Open with 5 other changes | |
274 | + | |
275 | + | |
276 | +2023-03-05 11:19:55 mio | |
277 | + New ticket [1568abea45d45b17|1568abea45] <i>Check MLCommand.update_ automatically updates end_date</i>. | |
278 | + | |
279 | + | |
280 | +2023-03-05 11:16:56 mio | |
281 | + Ticket [6518ca25e45b8a9c|6518ca25e4] <i>Use system recycle bin</i> status still Open with 3 other changes | |
282 | + | |
283 | + | |
284 | +2023-03-05 08:09:32 mio | |
285 | + Add nothrow version of ml_fetch_all | |
286 | + | |
287 | + EDITED main.d | |
288 | + EDITED medialist.d | |
289 | + | |
290 | +2023-03-05 07:34:55 mio | |
291 | + Add nothrow version of ml_fetch_item | |
292 | + | |
293 | + EDITED medialist.d | |
294 | + | |
295 | +2023-03-05 07:21:26 mio | |
296 | + Add dub.sdl to better support building with other compilers. | |
297 | + | |
298 | + ADDED dub.sdl | |
299 | + | |
300 | +2023-03-05 07:08:31 mio | |
301 | + Change C-Style declaration to D-Style | |
302 | + | |
303 | + EDITED medialist.d | |
304 | + | |
305 | +2023-03-04 08:06:57 mio | |
306 | + Add nothrow version of ml_fetch_headers. This does result in a small break with the throwing version of ml_fetch_headers, as it no longer accepts an MLError argument, and instead throws an MLException. | |
307 | + | |
308 | + EDITED medialist.d | |
309 | + | |
310 | +2023-03-04 06:36:53 mio | |
311 | + Add MLException class | |
312 | + | |
313 | + EDITED medialist.d | |
314 | + | |
315 | +2023-03-04 06:13:41 mio | |
316 | + Add nothrow version of ml_open_list | |
317 | + | |
318 | + EDITED medialist.d | |
319 | + | |
320 | +2023-03-04 05:18:54 mio | |
321 | + Use scope guards for MediaList.isOpen. | |
322 | + | |
323 | + EDITED medialist.d | |
324 | + | |
325 | +2023-02-23 10:49:06 mio | |
326 | + Add embedded documentation to public symbols in medialist.d | |
327 | + | |
328 | + EDITED medialist.d | |
329 | + | |
330 | +2023-02-23 07:04:05 mio | |
331 | + Update README | |
332 | + | |
333 | + EDITED README | |
334 | + | |
335 | +2023-02-23 06:59:40 mio | |
336 | + 'Trash' list when calling "delete" with no arguments making it, in theory, possible to restore a previously 'trashed' list. | |
337 | + | |
338 | + EDITED main.d | |
339 | + | |
340 | +2023-02-23 06:22:11 mio | |
341 | + 'Erase' instead of 'remove' log files and overwritten mTSV files. | |
342 | + | |
343 | + EDITED Makefile | |
344 | + EDITED TODO | |
345 | + EDITED main.d | |
346 | + ADDED trash.d | |
347 | + | |
348 | +2023-02-18 08:11:58 mio | |
349 | + Update TODO | |
350 | + | |
351 | + EDITED TODO | |
352 | + | |
353 | +2023-02-18 08:08:41 mio | |
354 | + Fixed ticket [d8ff1be0e1c72f15|d8ff1be0e1]: <i>Debug Logging</i> plus 4 other changes | |
355 | + | |
356 | + | |
357 | +2023-02-18 08:06:09 mio | |
358 | + Implement some basic logging. (d8ff1be0e1) | |
359 | + | |
360 | + EDITED main.d | |
361 | + | |
362 | +2023-02-18 07:25:43 mio | |
363 | + Update directories.d to support XDG_STATE_HOME and XDG_RUNTIME_DIR | |
364 | + | |
365 | + EDITED directories.d | |
366 | + | |
367 | +2023-02-18 06:40:27 mio | |
368 | + Replace xdg.d with directories.d | |
369 | + | |
370 | + EDITED Makefile | |
371 | + ADDED directories.d | |
372 | + EDITED main.d | |
373 | + DELETED xdg.d | |
374 | + | |
375 | +2023-02-18 03:25:46 mio | |
376 | + Update TODO | |
377 | + | |
378 | + EDITED TODO | |
379 | + | |
380 | +2023-02-14 10:35:20 mio | |
381 | + Add CLI command to import lists | |
382 | + | |
383 | + EDITED main.d | |
384 | + | |
385 | +2023-02-14 10:32:45 mio | |
386 | + Add ignore-glob for fossil | |
387 | + | |
388 | + ADDED .fossil-settings/ignore-glob | |
389 | + | |
390 | +2023-02-14 08:45:03 mio | |
391 | + Add opCmp to MediaListItem structure. | |
392 | + | |
393 | + EDITED medialist.d | |
394 | + | |
395 | +2023-02-14 07:26:14 mio | |
396 | + Add ml_medialistitem_to_string function to allow conversion of a MediaListItem to a TSV-compatible string. | |
397 | + | |
398 | + EDITED medialist.d | |
399 | + | |
400 | +2023-02-14 06:12:01 mio | |
401 | + Ticket [6518ca25e45b8a9c|6518ca25e4] <i>Use system recycle bin</i> status still Open with 4 other changes | |
402 | + | |
403 | + | |
404 | +2023-02-14 06:10:37 mio | |
405 | + Ticket [63ac787207039447|63ac787207] <i>"show" doesn't accept arguments in front of list name (again)</i> status still Closed with 3 other changes | |
406 | + | |
407 | + | |
408 | +2023-02-14 06:10:19 mio | |
409 | + Ticket [d8ff1be0e1c72f15|d8ff1be0e1] <i>Debug Logging</i> status still Open with 5 other changes | |
410 | + | |
411 | + | |
412 | +2023-02-14 06:10:01 mio | |
413 | + Ticket [6518ca25e45b8a9c|6518ca25e4] <i>Use system recycle bin</i> status still Open with 3 other changes | |
414 | + | |
415 | + | |
416 | +2023-02-14 06:09:45 mio | |
417 | + Ticket [6518ca25e45b8a9c|6518ca25e4] <i>Use system recycle bin</i> status still Open with 5 other changes | |
418 | + | |
419 | + | |
420 | +2023-02-14 06:08:36 mio | |
421 | + New ticket [6518ca25e45b8a9c|6518ca25e4] <i>Use system recycle bin</i>. | |
422 | + | |
423 | + | |
424 | +2023-02-14 02:47:43 mio | |
425 | + New ticket [d8ff1be0e1c72f15|d8ff1be0e1] <i>Debug Logging</i>. | |
426 | + | |
427 | + | |
428 | +2023-02-11 05:24:30 mio | |
429 | + Update TODO Removed the "Begin C/C++ rewrite" since there is no way to measure such a change. Instead, there is now the TODO "Import list from JSON", which would be much more useful if people export a JSON file from another application (rather than having to deal with the .tsv file itself). | |
430 | + | |
431 | + EDITED TODO | |
432 | + | |
433 | +2023-02-11 05:22:02 mio | |
434 | + Update MediaListCLIVersion | |
435 | + | |
436 | + EDITED main.d | |
437 | + | |
438 | +2023-02-11 05:21:22 mio | |
439 | + Implement option to export to HTML | |
440 | + | |
441 | + EDITED main.d | |
442 | + | |
443 | +2023-02-11 05:06:02 mio | |
444 | + Fix RangeError being thrown on show and export This could happen because the number of TAB characters for a singular line did not match the number of headers found in the mTSV file. Since medialist.d expects there to be at least a certain number of headers, we (if required) increase them in the main program. | |
445 | + | |
446 | + EDITED main.d | |
447 | + | |
448 | +2023-02-11 04:46:12 mio | |
449 | + MediaList (library) v0.2.0 More of a fix where the ml_fetch_all function would call std.string.strip on the mTSV line before splitting on a TAB, this resulted in a RangeError being thrown if the number of "sections" didn't match the number of "headers", even though they actually did in the .tsv file. NOTE: This still will through if there is a genuine mismatch between the number of headers or the number of fields in the file. | |
450 | + | |
451 | + EDITED medialist.d | |
452 | + | |
453 | +2023-02-11 01:59:25 mio | |
454 | + Begin implementing "export" command | |
455 | + | |
456 | + EDITED main.d | |
457 | + | |
458 | +2023-02-09 09:52:52 mio | |
459 | + update --version output | |
460 | + | |
461 | + EDITED main.d | |
462 | + | |
463 | +2023-02-09 09:51:44 mio | |
464 | + version update | |
465 | + | |
466 | + EDITED main.d | |
467 | + | |
468 | +2023-02-09 09:48:38 mio | |
469 | + Update TODO Remove the "Generic export function" TODO since it'd make more sense to either provide the results in a type which can be iterated over (e.g. a D array), or to provide an iterator interface for the language medialist is written in. In this case, since dynamic arrays in D provide a Range interface, there is no need to provide an explicit "export" function, when foreach(item; mediaListItems) { func(item); } would suffice. | |
470 | + | |
471 | + EDITED TODO | |
472 | + | |
473 | +2023-02-09 09:37:03 mio | |
474 | + Replace configparser.d with cni.d This will have no impact on people using medialist-cli. CNI provides an INI-compatibility mode which is used. | |
475 | + | |
476 | + EDITED Makefile | |
477 | + DELETED configparser.d | |
478 | + EDITED main.d | |
479 | + | |
480 | +2023-02-09 09:34:57 mio | |
481 | + Add 0BSD license to cni.d | |
482 | + | |
483 | + EDITED cni.d | |
484 | + | |
485 | +2023-02-09 08:39:44 mio | |
486 | + Address some dscanner issues. | |
487 | + | |
488 | + EDITED cni.d | |
489 | + | |
490 | +2023-02-09 08:28:32 mio | |
491 | + Test against the "bundle" directory. While this is not required for comliance, it does provide a larger file to automatically test against. | |
492 | + | |
493 | + EDITED cni.d | |
494 | + | |
495 | +2023-02-09 08:18:49 mio | |
496 | + Enable tests for `more-keys` extension. We are compliant. | |
497 | + | |
498 | + EDITED cni.d | |
499 | + | |
500 | +2023-02-09 08:16:20 mio | |
501 | + Test against INI tests. We are compliant. | |
502 | + | |
503 | + EDITED cni.d | |
504 | + | |
505 | +2023-02-09 08:04:33 mio | |
506 | + Throw exception when key starts or ends with '.' | |
507 | + | |
508 | + EDITED cni.d | |
509 | + | |
510 | +2023-02-09 07:57:57 mio | |
511 | + Closed ticket [63ac787207039447|63ac787207]: <i>"show" doesn't accept arguments in front of list name (again)</i> plus 2 other changes | |
512 | + | |
513 | + | |
514 | +2023-02-09 07:57:42 mio | |
515 | + Ticket [63ac787207039447|63ac787207] <i>"show" doesn't accept arguments in front of list name (again)</i> status still Open with 6 other changes | |
516 | + | |
517 | + | |
518 | +2023-02-09 07:47:23 mio | |
519 | + Fix parsing empty sections (i.e. []) and improve the CNITesting program. | |
520 | + | |
521 | + EDITED cni.d | |
522 | + | |
523 | +2023-02-07 10:42:35 mio | |
524 | + Make mention of version 0.4.0 which *should* be the last version written in D. The reason for the change is to allow use in other languages with more ease, and also to allow medialist on more platforms that don't currently have a version of D. | |
525 | + | |
526 | + EDITED TODO | |
527 | + EDITED main.d | |
528 | + EDITED medialist.d | |
529 | + | |
530 | +2023-02-07 10:35:22 mio | |
531 | + Initial import of cni.d. Still needs some work, not all tests are parsing or even running yet. | |
532 | + | |
533 | + ADDED cni.d | |
534 | + | |
535 | +2022-04-17 11:25:15 mio | |
536 | + New ticket [63ac787207039447|63ac787207] <i>"show" doesn't accept arguments in front of list name (again)</i>. | |
537 | + | |
538 | + | |
539 | +2022-03-18 10:20:33 mio | |
540 | + Fix start_date and end_date not automatically updating | |
541 | + | |
542 | + EDITED medialist.d | |
543 | + EDITED unittests.d | |
544 | ++++ end of timeline (107) +++ |
@@ -36,7 +36,7 @@ import mlib.trash : trash; | ||
36 | 36 | import medialist; |
37 | 37 | import util : expandEnvironmentVariables; |
38 | 38 | |
39 | -enum MediaListCLIVersion = "0.4-dev"; | |
39 | +enum MediaListCLIVersion = "0.4"; | |
40 | 40 | |
41 | 41 | @trusted void display_usage(string name) |
42 | 42 | { |
@@ -1075,8 +1075,7 @@ void setupLogger(in ref ProjectDirectories projectDirs) | ||
1075 | 1075 | } |
1076 | 1076 | |
1077 | 1077 | int main(string[] args) { |
1078 | - // idk? will think of something | |
1079 | - ProjectDirectories projectDirs = getProjectDirectories(null, "YumeNeru Productions", "medialist"); | |
1078 | + ProjectDirectories projectDirs = getProjectDirectories(null, "YumeNeru Software", "medialist"); | |
1080 | 1079 | string dataDirectory = projectDirs.dataDir; // default directory. |
1081 | 1080 | |
1082 | 1081 | string command = "help"; |
@@ -1134,8 +1133,8 @@ version(appimage) { | ||
1134 | 1133 | dataDirectory = conf["general.directory"]; |
1135 | 1134 | } else if ("Lists.directory" in conf) { |
1136 | 1135 | /* |
1137 | - * COMPAT: For pre-0.2 versions of medialist. No need to remove, | |
1138 | - * but probably will when re-writing the library. | |
1136 | + * COMPAT: For pre-0.2 versions of medialist. | |
1137 | + * REMOVE: At version 0.5 | |
1139 | 1138 | */ |
1140 | 1139 | trace("Using pre-0.2 configuration format"); |
1141 | 1140 | stderr.writeln(`WARNING: Using the "Lists" section in your configuration is deprecated.`); |
@@ -34,7 +34,7 @@ import std.string; | ||
34 | 34 | /// |
35 | 35 | /// Since: 0.4.0 |
36 | 36 | /// |
37 | -enum string MediaListVersion = "0.4.0-dev"; | |
37 | +enum string MediaListVersion = "0.4.0"; | |
38 | 38 | |
39 | 39 | /// |
40 | 40 | /// Enumeration array of int containing the version of MediaList. |