Specifying start time for a youtube video causes TypeError exception

Created on 9 September 2022, about 2 years ago
Updated 9 June 2023, over 1 year ago

Problem/Motivation

This seems to only happen when you don't specify a minute part for the start time and only put seconds. For example, if you specify start time as "55s" the exception below is thrown. However if you instead specify start time as "0m55s" then there's no error.

Exact exception error is:

TypeError: Unsupported operand types: string * int in Drupal\video_filter\Plugin\VideoFilter\Youtube->attributes() (line 55 of modules/contrib/video_filter/src/Plugin/VideoFilter/Youtube.php)

Proposed resolution


Cast the strings to an integer before trying to multiply it by an integer.

Remaining tasks

πŸ› Bug report
Status

Closed: duplicate

Version

1.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom Baysaa

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024