bugGNUpod - Bugs: bug #59977, "Can't use...

 
 

bug #59977: "Can't use 'defined(@array)'" error in gnupod_convert_FLAC line 135

Submitter:  None
Submitted:  Sat 30 Jan 2021 04:19:26 PM UTC
   
 
Category:  Adding songs Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 10 Mar 2021 02:39:52 PM UTC, comment #1: 

It actually seems that FLAC to, say AAC transcoding, is not working at all without the fix metoned in the previous post, repeated below

Manually changing line 135 in gnupod_convert_FLAC from
        return (defined(@alac_support));
to
        return (@alac_support);

I get a the strange output:

gnupod_addsong Version 0.99.8 (C) Adrian Ulrich
Can't use 'defined(@array)' (Maybe you should just omit the defined()?) at ./gnupod_convert_FLAC line 135.

> ReEncoding 'mydat/mysoundfile.flac' with quality 4, please wait...

+ [MP3 ][  1] mysoundfile.flac | Unknown Album                    | Unknown Artist         

> Writing new XML File, added 1 file(s)



NOTICE the "[MP3]" tag and no album, title tags will be added

gnupod_search Version 0.99.8 (C) Adrian Ulrich
ID  |ARTIST                          |ALBUM                           |TITLE                          
========================================================================================================
608 |Unknown Artist                  |Unknown Album                   |mysoundfile.flac


BUT removing the 'define' in gnupod_convert_FLAC@135 fixes it, and tags are again added to files.



Anonymous
Sat 30 Jan 2021 04:19:26 PM UTC, original submission:  

Adding a FLAC encoded song throws an error:

##
gnupod_addsong -m /media/user/ipod --decode=mp3 '/mnt/music/favorite track.flac'
gnupod_addsong Version 0.99.8 (C) Adrian Ulrich
Can't use 'defined(@array)' (Maybe you should just omit the defined()?) at /usr/bin/gnupod_convert_FLAC line 135.

  • [****] Skipping '/mnt/music/favorite track.flac', unknown file type

##

Manually changing line 135 in gnupod_convert_FLAC from
        return (defined(@alac_support));
to
        return (@alac_support);
patches it for me. Not sure if that's the way to go though.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

No changes have been made to this item

Back to the top

Powered by Savane 3.13-02a9.
Corresponding source code