Commit Graph
62 Commits
Author SHA1 Message Date
mbirth a3fddb495d Optimise id3v2.4 comment parsing 2024-05-27 20:04:43 +01:00
mbirth 37bc9d5ec6 Optimise id3v2 header parsing 2024-05-27 20:04:23 +01:00
mbirth d474f40403 Helper for Syncsafe size values 2024-05-27 20:03:14 +01:00
mbirth c0d64e81aa Minor style optimisations 2024-05-27 20:01:29 +01:00
mbirth 4de63bd94b Proper TXXX tag handling
TXXX consists of description and value. Descriptions should be unique, but rarely are. This now parses them into TXXX:<description> and turns it into an array if multiple tags are found.

Signed-off-by: Markus Birth <markus@birth-online.de>
2024-05-27 16:20:49 +01:00
mbirth d6977ef4dc Fix ID3v2 frame size calculation
Frame size uses 7-out-of-8-Bits notation.

Signed-off-by: Markus Birth <markus@birth-online.de>
2024-05-27 15:28:22 +01:00
mbirth 48edb42c1e Fix isValidAudio()
Signed-off-by: Markus Birth <markus@birth-online.de>
2024-05-27 13:49:41 +01:00
mbirth 120617847c Fix cover retrieval
Signed-off-by: Markus Birth <markus@birth-online.de>
2024-05-27 13:05:30 +01:00
mbirth 3699fd5ecb Add separate classes for local and remote file access
Improves parsing of remote files by using HTTP Range requests so it doesn't have to download the whole file.

Signed-off-by: Markus Birth <markus@birth-online.de>
2024-05-26 14:15:17 +01:00
SergeyandGitHub d749cdd862 Update README.md 2023-05-30 11:00:48 +03:00
wapmorgan f4e3b0d606 #29 Fix invalid short_description for empty short_description 2023-05-28 21:37:15 +03:00
SergeyandGitHub a28101d523 Merge pull request #28 from kesselb/guard-get-cover
fix: add string as return for getCover and make sure to not pass false to fseek
2023-05-28 21:05:37 +03:00
wapmorgan 534c3052d4 #13 #24 Fix invalid duration due to difference in first N frames. Solution: read few frames and compute duration based on the last frame data. 2023-05-28 21:04:09 +03:00
Daniel Kesselberg c75f4e0a39 fix: add string as return for getCover and make sure to not pass false to fseek
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2023-05-28 16:33:05 +02:00
SergeyandGitHub cbbd6b306b Update composer.json 2022-07-29 23:14:29 +03:00
SergeyandGitHub a7cd1727b5 Update mp3scan 2022-07-29 23:14:08 +03:00
wapmorgan 13d1c142a7 Fixing #25: implode on php8 2022-06-16 02:39:26 +03:00
SergeyandGitHub 752935f83a Merge pull request #22 from shannah/master
Suppress check for valid audio on URLs to fix 'File not present' erro…
2022-02-20 23:25:01 +03:00
SergeyandGitHub e24b66463f Merge pull request #23 from paurakhsharma/patch-1
Fix isValidAudio logic for remote URL
2022-01-01 17:01:34 +03:00
Paurakh Sharma HumagainandGitHub a4aa368e59 Fix isValidAudio logic for remote URL 2021-11-25 13:42:48 +01:00
Steve Hannah 45c8e67e43 Suppress check for valid audio on URLs to fix 'File not present' errors when passing URLs to constructor. Fixes https://github.com/wapmorgan/Mp3Info/issues/21 2021-11-12 10:12:15 -08:00
wapmorgan b53a5e9368 Ability to scan remote files (downloads the whole file; #19) and checking file before scanning 2021-08-12 03:38:40 +03:00
wapmorgan 9e9e29fc3f Append README: getCover (#18) 2021-08-11 21:30:23 +03:00
wapmorgan ee86090f0a Fix incorrect VBR-file duration (depending on quality) and add Cover extraction 2021-08-11 21:21:54 +03:00
SergeyandGitHub 5f7d54fa69 Update README.md 2020-05-07 00:33:39 +03:00
SergeyandGitHub 26384fb5a2 Update README.md 2020-05-07 00:32:00 +03:00
SergeyandGitHub 317c124adf Update README.md 2020-05-07 00:26:21 +03:00
wapmorgan 7b524fabfe Implement id3v2.4.x reading 2020-05-07 00:22:02 +03:00
wapmorgan 0dc3d62d15 Update scanner 2019-12-03 03:57:48 +03:00
wapmorgan acfbcfb5d2 Fix checking vbr for 2.5 codec 2019-12-03 03:57:41 +03:00
wapmorgan 91b9ab254c Update readme 2019-12-03 03:36:51 +03:00
wapmorgan 89fac15d4f update mp3scan & update seeking for mpeg header 2019-12-03 03:35:40 +03:00
wapmorgan fd4a4ed97d Update readme 2019-12-03 03:35:23 +03:00
wapmorgan d21f67a9e0 Add $tags list with combined tags. Improve isValidAudio() 2019-12-03 03:27:22 +03:00
wapmorgan 9049767016 Adjust audio duration in case of VBR with present quality 2019-12-03 02:55:12 +03:00
wapmorgan 9a7559e0d4 Fix #5. Fixed invalid duration (+ few seconds) on files with non-popular sample rate. Updated looking for a mpeg header 2019-12-03 02:12:38 +03:00
wapmorgan 3d3bae1424 fix #14 problem 2019-12-02 03:31:14 +03:00
wapmorgan 491bee5706 Add comments 2018-12-15 00:03:35 +03:00
wapmorgan 9d5d136e1b Fix 'missing ending character when utf16 used' by @parzibyte' 2018-11-01 22:59:06 +03:00
SergeyandGitHub 0d5a492d28 Merge pull request #11 from otnavle/master
Add empty checking for readbytes and headerBytes
2018-10-04 21:09:03 +03:00
ryanrigby17 596b6bf1b0 Update src 2018-09-12 11:39:05 +10:00
ryanrigby17 0591992592 Merge remote-tracking branch 'upstream/master' 2018-09-12 08:50:51 +10:00
SergeyandGitHub 9c9fb10dc8 Update composer.json 2018-09-04 15:05:17 +03:00
ryanrigby17 f4b5dd58e7 Add empty checking for readbytes and headerBytes 2018-09-04 14:20:45 +10:00
wapmorgan 27bb2c55e9 Simple update 2018-08-16 00:50:35 +03:00
SergeyandGitHub 1f083faf60 Update Mp3Info.php 2018-04-11 19:38:43 +03:00
wapmorgan 1f98fd2316 update script 2018-03-19 23:01:04 +03:00
wapmorgan 163db51767 update script 2018-03-19 22:59:53 +03:00
wapmorgan 0ed1ec7caa Fix scanning mp3-files with padding before audio data 2018-03-19 22:47:12 +03:00
SergeyandGitHub 9de5d868fe Update README.md 2018-02-09 00:43:15 +03:00