Fixed: Use runtime of series for sample checks instead of constant
Refactored setting attributes on media/metadata files to its own service