def getPub(input): if fa_category in input or input.category == 'furaffinity': return 'Furaffinity' elif input.category == 'deviantart': return 'DeviantArt' else: return 'Unknown'