@@ -25,15 +25,15 @@ def build_comments_list(client, asset_id, comment_list):
2525 Takes an initialized client, recursively builds a list of comments
2626 and returns the list. (Technically, it's a list of dicts)
2727 """
28- assets = client .get_asset_children (asset_id )
28+ assets = client .assets . get_children (asset_id )
2929
3030 for asset in assets :
3131 # Recurse through folders but skip the empty ones
3232 if (asset .get ('type' ) == 'folder' ) and (asset .get ('item_count' ) > 0 ):
3333 build_comments_list (client , asset ['id' ], comment_list )
3434
3535 if asset .get ('type' ) == 'file' and asset .get ('comment_count' ) > 0 :
36- comments = client .get_comments (asset ['id' ])
36+ comments = client .comments . get (asset ['id' ])
3737 for comment in comments :
3838 # The 'get_comments" call won't return the asset name
3939 # So we'll add it to the dictionary now.
@@ -42,9 +42,9 @@ def build_comments_list(client, asset_id, comment_list):
4242
4343 if asset .get ('type' ) == 'version_stack' :
4444 # Read about version stacks: https://docs.frame.io/docs/managing-version-stacks
45- versions = client .get_asset_children (asset ['id' ])
45+ versions = client .assets . get_children (asset ['id' ])
4646 for v_asset in versions :
47- comments = client .get_comments (v_asset ['id' ])
47+ comments = client .comments . get (v_asset ['id' ])
4848 for comment in comments :
4949 comment ['asset' ] = { 'name' : asset ['name' ] }
5050 comment_list .append (comment )
0 commit comments