Beispiel #1
0
    def check_link_ov_asset(self, asset, essence):
        """ VF package shall reference assets present in OV.

            References: N/A
        """
        if not self.ov_dcp:
            return

        ov_dcp_dict = self.ov_dcp.parse()

        if not asset.get('Path'):
            uuid = asset['Id']
            path_ov = ov_dcp_dict['asset_list'].get(uuid)

            if not path_ov:
                self.error("Asset missing ({}) from OV : {}".format(
                    essence, uuid))

            asset_path = os.path.join(self.ov_dcp.path, path_ov)
            if not os.path.exists(asset_path):
                self.error("Asset missing ({}) from OV (MXF not found) : {}"
                           "".format(essence, path_ov))

            # Probe asset for later checks
            asset['AbsolutePath'] = asset_path
            cpl_probe_asset(asset, essence, asset_path)
Beispiel #2
0
    def check_link_ov_asset(self, asset, essence):
        """ VF package shall reference assets present in OV. """
        ov_dcp_dict = self.ov_dcp.parse()

        if 'Path' not in asset:
            uuid = asset['Id']
            path_ov = ov_dcp_dict['asset_list'].get(uuid)

            if not path_ov:
                raise CheckException("Missing asset from OV : {}".format(uuid))

            asset_path = os.path.join(self.ov_dcp.path, path_ov)
            if not os.path.exists(asset_path):
                raise CheckException(
                    "Missing asset from OV (MXF not found) : {}"
                    "".format(path_ov))

            # Probe asset for later checks
            asset['Path'] = asset_path
            cpl_probe_asset(asset, essence, asset_path)
Beispiel #3
0
 def cpl_probe_assets(self):
     """ Probe mxf assets for each reel. """
     for cpl in self._list_cpl:
         for essence, asset in list_cpl_assets(cpl):
             asset_path = os.path.join(self.path, asset.get('Path', ''))
             cpl_probe_asset(asset, essence, asset_path)
Beispiel #4
0
 def cpl_probe_assets(self):
     """ Probe mxf assets for each reel. """
     for cpl in self._list_cpl:
         for essence, asset in list_cpl_assets(cpl):
             asset_path = asset.get('AbsolutePath', '')
             cpl_probe_asset(asset, essence, asset_path)