GetID3 library not found

Created on 12 January 2024, 6 months ago
Updated 7 February 2024, 5 months ago

Problem/Motivation

I am making a podcast feed with project "podcast" which uses Views to create the feed. I need to add the length and time of the audio file, so I need access to these fields, which the submodule "Views RSS: Media getID3" offers. I ran
composer require james-heinrich/getid3
But still get the error:
Views RSS: Media getID3 requires the getID3 library.
Using Drupal 9.5.11, PHP 8.1.25
I don't see the library in the /libraries directory, but the composer reported downloading it and then did not report an error, so I don't know where the getid3 library lives to see if it exists.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Needs review

Version

2.2

Component

Miscellaneous

Created by

πŸ‡ΊπŸ‡ΈUnited States scottop

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @scottop
  • Status changed to Needs review 6 months ago
  • Open on Drupal.org β†’
    Core: 10.2.x + Environment: PHP 8.2 & MySQL 8
    last update 6 months ago
    Waiting for branch to pass
  • πŸ‡ΊπŸ‡ΈUnited States DamienMcKenna NH, USA

    Looking over it, yeah we need some improvements there.

    I took a look.

    I think the module needs to be updated to use the new 2.0 branch of getID3, which is PSR4 compliant.

    Please test this out, and check the included README.md file.

  • πŸ‡ΊπŸ‡ΈUnited States scottop

    Thank you. Yes, this patch fixed it.

    I also had to remove the module and reinstall, because the patch wasn't working (the views_rss_media_getid3 was in the wrong place). Don't know how that happened, but probably my fault and not yours.

  • πŸ‡ΊπŸ‡ΈUnited States scottop

    OK, I spoke too soon. The module installed, but I do not see any new types of information I can add in the Views Fields. Searching for "audio" only gives me the field "Audio file" in the category "media" which I had before I installed this module.

    There is no field like "id3" of "playtime" or "length" or "encoding".

  • πŸ‡ΊπŸ‡ΈUnited States DamienMcKenna NH, USA

    When this module is installed it doesn't give you a new field, it gives a new option in the display settings.

  • πŸ‡ΊπŸ‡ΈUnited States scottop

    Damien, thank you for hanging in there. I don't know if I am still making a stupid mistake or if something is still not working. I have two questions:

    First, I don't know what you mean by "a new option in the display settings". It seems most likely that you meant a new option in the Field Formatting options inside of Views, but there is none that I can find. Perhaps I don't have the right field selected for formatting, but here are the formatting options for the field that represents the actual audio file attached to the content:

    I can select "URL to File", or "RSS Enclosure" and a few other things, but not "File length" or "Duration".

  • πŸ‡ΊπŸ‡ΈUnited States DamienMcKenna NH, USA

    Ah.

    I added some screenshots to the documentation that shows what part I'm talking about:

    https://www.drupal.org/docs/contributed-modules/advanced-views-rss-feed/... β†’

    Click the "Settings" link on the "Show" section, that's where you control the output of each item.

  • πŸ‡ΊπŸ‡ΈUnited States DamienMcKenna NH, USA

    This needs to be in the next release.

Production build 0.69.0 2024