ynput / ayon-kitsu

Official AYON<->Kitsu intetgration (WIP)
Apache License 2.0
7 stars 4 forks source link

Catch empty strings in calculate_end_frame() #40

Closed EmberLightVFX closed 3 months ago

EmberLightVFX commented 4 months ago

This PR simply adds a check for empty strings in calculate_end_frame() instead of only None

If the Kitsu task have the metadata frame_in or frame_out but it doesn't have a set value in Kitsu it will return an empty string. Without this fix the sync will catch an error as frame_start will be found but you can't combine an empty string with nb_frames.