Ivailo Monev
c92d1b598d
generic: prioritize single glob MIME type match, magic after like the reference implementation
...
also try-match lower weight globs before try-matching fast patterns
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-22 09:13:14 +02:00
Ivailo Monev
b56e4cb58a
kio: assume KMimeType::findByUrl() can do better in normal mode in KFileItem::mimeTypePtr()
...
for reference:
777feebd7e
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-21 19:38:28 +02:00
Ivailo Monev
51df3faed6
kio: do not use KIO::NetAccess::stat() to compute modification time
...
fixes rare crash due to thread-safety issues
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-20 14:16:40 +02:00
Ivailo Monev
32003b81a7
kio: copy URL member from KFileMetaInfoPrivate assignment operator
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-20 11:44:41 +02:00
Ivailo Monev
fd606e89a8
kio: remove scanning support leftovers
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-16 08:21:02 +02:00
Ivailo Monev
5799f4f00a
kio: remove unused permanent redirection signal
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-16 07:00:28 +02:00
Ivailo Monev
3aba3073fa
kio: remove unused KIO::http_update_cache() function
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-16 06:54:29 +02:00
Ivailo Monev
1f066a6648
kio: start with empty extractor plugins list
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-16 06:01:51 +02:00
Ivailo Monev
cc004024eb
kio: use objects instead of pointers for persistent KIO::NetAccess class storage
...
KIO::NetAccess::lastErrorString(), KIO::NetAccess::download() and
KIO::NetAccess::removeTempFile() still exhibit thread-safety issues, even
if thread-local storage is used for the variables it will suffer from the
same issues errno has - it is bad design
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-16 03:59:53 +02:00
Ivailo Monev
0dffb00507
kio: add extractor plugins to list instead of removing
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-16 03:55:59 +02:00
Ivailo Monev
96ace3b692
kio: add the URL modification time to the thumbnail filename
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-13 10:05:41 +02:00
Ivailo Monev
22c93570a2
kio: remove plugins that generate preview or thumbnail from libextractor plugins list
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-12 21:56:06 +02:00
Ivailo Monev
6a54f7b41e
kio: connect to meta information provider once during KFileMetaDataConfigurationWidget construction
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-12 21:36:07 +02:00
Ivailo Monev
781ed5e013
kio: clear data even if items list is empty in KFileMetaDataProvider
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-12 21:35:15 +02:00
Ivailo Monev
7b1b769788
kio: remove unused KDBusServiceStarter class
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-12 10:36:07 +02:00
Ivailo Monev
f5743909a9
kio: remove check for non-existing MIME type
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-11 07:20:21 +02:00
Ivailo Monev
2f8c0f7841
kio: show meta properties dialog
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-11 02:49:51 +02:00
Ivailo Monev
5ba7c7516a
kio: do not link to zlib and X11 libraries
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-11 02:41:19 +02:00
Ivailo Monev
c2a23e4445
kio: map EXTRACTOR_METATYPE_URI to http://www.semanticdesktop.org/ontologies/2007/05/10/nid3#uniqueFileIdentifier
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-11 02:22:31 +02:00
Ivailo Monev
0e50b3e824
kio: store meta information values as string in KFileMetaDataProvider
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-11 02:05:34 +02:00
Ivailo Monev
6a738bd030
kio: enable ~20 meta information keys by default
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-11 00:55:52 +02:00
Ivailo Monev
04fddbd3bb
kio: fix exclusion of disabled meta information
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-10 17:09:04 +02:00
Ivailo Monev
ab6370b41a
kio: repurpose KFileMetaInfo::supportedKeys(), new public KFileMetaInfo::name() method
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-10 12:05:20 +02:00
Ivailo Monev
7aa27510cb
kio: fancy time, frame rate, sample rate and bit rate meta information
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-10 06:09:36 +02:00
Ivailo Monev
aaac5ec388
generic: remove unused metainfo KIO slave and MetaInfoJob KIO class
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-10 02:21:42 +02:00
Ivailo Monev
2da2c1db28
kio: fix possible crash in case no valid URL is passed to KFileMetaDataProvider::setItems()
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-09 22:49:24 +02:00
Ivailo Monev
1091f8e521
kio: KFileMetaDataProvider review
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-09 22:43:30 +02:00
Ivailo Monev
6a017117a8
kio: clear KFileMetaDataProvider data before reading metadata for new items
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-09 22:20:30 +02:00
Ivailo Monev
50e476d005
kio: remove unused KFileMetaDataProvider::Private methods
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-09 22:15:47 +02:00
Ivailo Monev
082ea4e161
kio: de-virtualize KFileMetaDataProvider methods and remove one that is not used
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-09 22:11:20 +02:00
Ivailo Monev
97d0a53397
kio: filter duplicates after meta information extraction is complete
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-09 19:11:24 +02:00
Ivailo Monev
89d98b24c6
kio: implement KFileMetaInfo::preferredKeys()
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-09 18:14:09 +02:00
Ivailo Monev
3a1bea4822
kio: correct subtitles codec key translation
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-09 18:13:23 +02:00
Ivailo Monev
a67c74dff4
kio: store KFileMetaInfoItem as list in KFileMetaInfo, value as QString in KFileMetaInfoItem
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-09 16:26:00 +02:00
Ivailo Monev
8cb850308d
kio: handle more meta information cases
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-09 15:33:11 +02:00
Ivailo Monev
481e47a8b9
kio: handle more meta information cases
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-09 04:16:33 +02:00
Ivailo Monev
fb03c5ecb1
kio: convert URI to non-percentage encoded string in KNfoTranslator::translation()
...
half way there, still it looks a bit too much:
https://ibb.co/Bfqfj4n
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-09 02:45:12 +02:00
Ivailo Monev
f4b23e1b4e
kio: avoid KUrl to QString and then implicit KUrl conversion in KFileMetaDataProvider::label()
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-09 02:40:51 +02:00
Ivailo Monev
90c5cb1778
kio: handle more meta information cases
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-09 02:18:34 +02:00
Ivailo Monev
02fe8db7f7
kio: handle more meta information cases
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-09 01:07:48 +02:00
Ivailo Monev
ba198f7fc1
kio: reimplement meta information via libextractor
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-09 00:06:22 +02:00
Ivailo Monev
c90d0d7d16
generic: drop support for file metadata writing
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-08 21:30:04 +02:00
Ivailo Monev
6be64be278
kio: actually return translated key from KFileMetaInfoItem::name()
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-08 18:48:43 +02:00
Ivailo Monev
229f2a78cf
kio: remove unused KFileMetaInfoGroup class
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-08 18:02:03 +02:00
Ivailo Monev
8d10293c57
kio: add TODO for KImageIO methods [ci reset]
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-08 04:07:32 +02:00
Ivailo Monev
e3ae3ce529
kioslave: implement no-auth for http slave
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-05 04:38:52 +02:00
Ivailo Monev
522e65a22e
kio: make use of the new QImageReader and QImageWriter methods in KImageIO class
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-03 14:49:41 +02:00
Ivailo Monev
d1cfc14e18
kparts: remove unused BrowserInterface, BrowserRun and BrowserOpenOrSaveQuestion classes
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-03 01:33:04 +02:00
Ivailo Monev
59227c764e
kio: remove unused KProtocolManager::proxyConfigScript() method
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-03 00:31:45 +02:00
Ivailo Monev
9506c710ff
kio: correct format for thumbnails
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-02 15:09:26 +02:00