Example #1
0
    def _getAssetStoreInfo(self, allInfo):
        info = AssetStoreInfo()
        info.publisherId = allInfo['publisher']['id']
        info.publisherLabel = allInfo['publisher']['label']
        info.publishNotes = allInfo.get('publishnotes', '')
        info.categoryId = allInfo['category']['id']
        info.categoryLabel = allInfo['category']['label']
        info.uploadId = allInfo.get('upload_id', None)
        info.description = allInfo.get('description', '')

        pubDate = allInfo['pubdate']
        info.publishDate = datetime.strptime(pubDate, "%d %b %Y")

        info.unityVersion = allInfo.get('unity_version', None)
        info.linkId = allInfo['link']['id']
        info.linkType = allInfo['link']['type']
        return info
Example #2
0
    def _getAssetStoreInfo(self, allInfo):
        info = AssetStoreInfo()
        info.publisherId = allInfo['publisher']['id']
        info.publisherLabel = allInfo['publisher']['label']
        info.publishNotes = allInfo.get('publishnotes', '')
        info.categoryId = allInfo['category']['id']
        info.categoryLabel = allInfo['category']['label']
        info.uploadId = allInfo.get('upload_id', None)
        info.description = allInfo.get('description', '')

        pubDate = allInfo['pubdate']
        info.publishDate = datetime.strptime(pubDate, "%d %b %Y")

        info.unityVersion = allInfo.get('unity_version', None)
        info.linkId = allInfo['link']['id']
        info.linkType = allInfo['link']['type']
        return info
Example #3
0
    def _getAssetStoreInfo(self, allInfo):
        info = AssetStoreInfo()
        info.publisherId = allInfo['publisher']['id']
        info.publisherLabel = allInfo['publisher']['label']
        info.publishNotes = allInfo.get('publishnotes', '')
        info.categoryId = allInfo['category']['id']
        info.categoryLabel = allInfo['category']['label']
        info.uploadId = allInfo.get('upload_id', None)

        # This often causes issues when deserialized with YamlDotNet for reasons unknown so just leave it blank for now
        #info.description = allInfo.get('description', '')
        info.description = ''

        pubDate = allInfo['pubdate']
        info.publishDate = datetime.strptime(pubDate, "%d %b %Y")

        info.unityVersion = allInfo.get('unity_version', None)
        info.linkId = allInfo['link']['id']
        info.linkType = allInfo['link']['type']
        return info
Example #4
0
    def _getAssetStoreInfo(self, allInfo):
        info = AssetStoreInfo()
        info.publisherId = allInfo['publisher']['id']
        info.publisherLabel = allInfo['publisher']['label']
        info.publishNotes = allInfo.get('publishnotes', '')
        info.categoryId = allInfo['category']['id']
        info.categoryLabel = allInfo['category']['label']
        info.uploadId = allInfo.get('upload_id', None)

        # This often causes issues when deserialized with YamlDotNet for reasons unknown so just leave it blank for now
        #info.description = allInfo.get('description', '')
        info.description = ''

        pubDate = allInfo['pubdate']
        info.publishDate = datetime.strptime(pubDate, "%d %b %Y")

        info.unityVersion = allInfo.get('unity_version', None)
        info.linkId = allInfo['link']['id']
        info.linkType = allInfo['link']['type']
        return info