text: export const iTunesCategories = {
    arts: {
      name: "Arts"
    },
    books: {
      name: "Books",
      parent: "arts"
    },
    design: {
      name: "Design",
      parent: "arts"
    },
    fashion_and_beauty: {
      name: "Fashion \u0026 Beauty",
      parent: "arts"
    },
    food: {
      name: "Food",
      parent: "arts"
    },
    literature: {
      name: "Literature",
      parent: "arts",
      "removed?": true
    },
    performing_arts: {
      name: "Performing Arts",
      parent: "arts"
    },
    visual_arts: {
      name: "Visual Arts",
      parent: "arts"
    },
    business: {
      name: "Business"
    },
    careers: {
      name: "Careers",
      parent: "business"
    },
    entrepreneurship: {
      name: "Entrepreneurship",
      parent: "business"
    },
    investing: {
      name: "Investing",
      parent: "business"
    },
    management_and_marketing: {
      name: "Management \u0026 Marketing",
      parent: "business",
      "removed?": true
    },
    management: {
      name: "Management",
      parent: "business"
    },
    marketing: {
      name: "Marketing",
      parent: "business"
    },
    shopping: {
      name: "Shopping",
      parent: "business",
      "removed?": true
    },
    non_profit: {
      name: "Non-profit",
      parent: "business"
    },
    comedy: {
      name: "Comedy"
    },
    comedy_itw: {
      name: "Comedy Interviews",
      parent: "comedy"
    },
    improv: {
      name: "Improv",
      parent: "comedy"
    },
    standup: {
      name: "Stand-Up",
      parent: "comedy"
    },
    education: {
      name: "Education"
    },
    education_subcategory: {
      name: "Education",
      parent: "education",
      "removed?": true
    },
    courses: {
      name: "Courses",
      parent: "education"
    },
    education_technology: {
      name: "Education Technology",
      parent: "education",
      "removed?": true
    },
    higher_education: {
      name: "Higher Education",
      parent: "education",
      "removed?": true
    },
    how_to: {
      name: "How to",
      parent: "education"
    },
    k_12: {
      name: "K-12",
      parent: "education",
      "removed?": true
    },
    language_courses: {
      name: "Language Courses",
      parent: "education",
      "removed?": true
    },
    language_learning: {
      name: "Language Learning",
      parent: "education"
    },
    self_improvement: {
      name: "Self Improvement",
      parent: "education"
    },
    training: {
      name: "Training",
      parent: "education",
      "removed?": true
    },
    fiction: {
      name: "Fiction"
    },
    comedy_fiction: {
      name: "Comedy Fiction",
      parent: "fiction"
    },
    drama: {
      name: "Drama",
      parent: "fiction"
    },
    science_fiction: {
      name: "Science Fiction",
      parent: "fiction"
    },
    games_and_hobbies: {
      name: "Games \u0026 Hobbies",
      "removed?": true
    },
    other_games: {
      name: "Other Games",
      parent: "games_and_hobbies",
      "removed?": true
    },
    government_and_organizations: {
      name: "Government \u0026 Organizations",
      "removed?": true
    },
    local: {
      name: "Local",
      parent: "government_and_organizations",
      "removed?": true
    },
    national: {
      name: "National",
      parent: "government_and_organizations",
      "removed?": true
    },
    regional: {
      name: "Regional",
      parent: "government_and_organizations",
      "removed?": true
    },
    government: {
      name: "Government"
    },
    health: {
      name: "Health",
      "removed?": true
    },
    fitness_and_nutrition: {
      name: "Fitness \u0026 Nutrition",
      parent: "health",
      "removed?": true
    },
    self_help: {
      name: "Self-Help",
      parent: "health",
      "removed?": true
    },
    health_and_fitness: {
      name: "Health \u0026 Fitness"
    },
    alternative_health: {
      name: "Alternative Health",
      parent: "health_and_fitness"
    },
    fitness: {
      name: "Fitness",
      parent: "health_and_fitness"
    },
    medecine: {
      name: "Medecine",
      parent: "health_and_fitness"
    },
    mental_health: {
      name: "Mental Health",
      parent: "health_and_fitness"
    },
    nutrition: {
      name: "Nutrition",
      parent: "health_and_fitness"
    },
    sexuality: {
      name: "Sexuality",
      parent: "health_and_fitness"
    },
    history: {
      name: "History"
    },
    kids_and_family: {
      name: "Kids \u0026 Family"
    },
    education_for_kids: {
      name: "Education for Kids",
      parent: "kids_and_family"
    },
    parenting: {
      name: "Parenting",
      parent: "kids_and_family"
    },
    pets_and_animals: {
      name: "Pets \u0026 Animals",
      parent: "kids_and_family"
    },
    stories_for_kids: {
      name: "Stories for Kids",
      parent: "kids_and_family"
    },
    leisure: {
      name: "Leisure"
    },
    animation_and_manga: {
      name: "Animation \u0026 Manga",
      parent: "leisure"
    },
    automotive: {
      name: "Automotive",
      parent: "leisure"
    },
    aviation: {
      name: "Aviation",
      parent: "leisure"
    },
    crafts: {
      name: "Crafts",
      parent: "leisure"
    },
    games: {
      name: "Games",
      parent: "leisure"
    },
    hobbies: {
      name: "Hobbies",
      parent: "leisure"
    },
    home_and_garden: {
      name: "Home \u0026 Garden",
      parent: "leisure"
    },
    video_games: {
      name: "Video Games",
      parent: "leisure"
    },
    music: {
      name: "Music"
    },
    music_commentary: {
      name: "Music Commentary",
      parent: "music"
    },
    music_history: {
      name: "Music History",
      parent: "music"
    },
    music_interviews: {
      name: "Music Interviews",
      parent: "music"
    },
    news_and_politics: {
      name: "News \u0026 Politics",
      "removed?": true
    },
    news: {
      name: "News"
    },
    business_news: {
      name: "Business News",
      parent: "news"
    },
    daily_news: {
      name: "Daily News",
      parent: "news"
    },
    entertainment_news: {
      name: "Entertainment News",
      parent: "news"
    },
    news_commentary: {
      name: "News Commentary",
      parent: "news"
    },
    politics: {
      name: "Politics",
      parent: "news"
    },
    sports_news: {
      name: "Sports News",
      parent: "news"
    },
    tech_news: {
      name: "Tech News",
      parent: "news"
    },
    religion_and_spirituality: {
      name: "Religion \u0026 Spirituality"
    },
    buddhism: {
      name: "Buddhism",
      parent: "religion_and_spirituality"
    },
    christianity: {
      name: "Christianity",
      parent: "religion_and_spirituality"
    },
    hinduism: {
      name: "Hinduism",
      parent: "religion_and_spirituality"
    },
    islam: {
      name: "Islam",
      parent: "religion_and_spirituality"
    },
    judaism: {
      name: "Judaism",
      parent: "religion_and_spirituality"
    },
    religion: {
      name: "Religion",
      parent: "religion_and_spirituality"
    },
    other: {
      name: "Other",
      parent: "religion_and_spirituality",
      "removed?": true
    },
    spirituality: {
      name: "Spirituality",
      parent: "religion_and_spirituality"
    },
    science_and_medicine: {
      name: "Science \u0026 Medicine",
      removed: "removed?"
    },
    medicine: {
      name: "Medicine",
      parent: "science_and_medicine",
      removed: "removed?"
    },
    science: {
      name: "Science"
    },
    astronomy: {
      name: "Astronomy",
      parent: "science"
    },
    chemistry: {
      name: "Chemistry",
      parent: "science"
    },
    earth_sciences: {
      name: "Earth Sciences",
      parent: "science"
    },
    life_sciences: {
      name: "Life Sciences",
      parent: "science"
    },
    mathematics: {
      name: "Mathematics",
      parent: "science"
    },
    natural_sciences: {
      name: "Natural Sciences",
      parent: "science"
    },
    nature: {
      name: "Nature",
      parent: "science"
    },
    physics: {
      name: "Physics",
      parent: "science"
    },
    social_sciences: {
      name: "Social Sciences",
      parent: "science"
    },
    society_and_culture: {
      name: "Society \u0026 Culture"
    },
    documentary: {
      name: "Documentary",
      parent: "society_and_culture"
    },
    personal_journals: {
      name: "Personal Journals",
      parent: "society_and_culture"
    },
    philosophy: {
      name: "Philosophy",
      parent: "society_and_culture"
    },
    places_and_travel: {
      name: "Places \u0026 Travel",
      parent: "society_and_culture"
    },
    relationships: {
      name: "Relationships",
      parent: "society_and_culture"
    },
    sports_and_recreation: {
      name: "Sports \u0026 Recreation",
      "removed?": true
    },
    amateur: {
      name: "Amateur",
      parent: "sports_and_recreation",
      "removed?": true
    },
    college_and_high_school: {
      name: "College \u0026 High School",
      parent: "sports_and_recreation",
      "removed?": true
    },
    professional: {
      name: "Professional",
      parent: "sports_and_recreation",
      "removed?": true
    },
    outdoor: {
      name: "Outdoor",
      parent: "sports_and_recreation",
      "removed?": true
    },
    sports: {
      name: "Sports"
    },
    baseball: {
      name: "Baseball",
      parent: "sports"
    },
    basketball: {
      name: "Basketball",
      parent: "sports"
    },
    cricket: {
      name: "Cricket",
      parent: "sports"
    },
    fantasy_sports: {
      name: "Fantasy Sports",
      parent: "sports"
    },
    football: {
      name: "Football",
      parent: "sports"
    },
    golf: {
      name: "Golf",
      parent: "sports"
    },
    hockey: {
      name: "Hockey",
      parent: "sports"
    },
    rugby: {
      name: "Rugby",
      parent: "sports"
    },
    running: {
      name: "Running",
      parent: "sports"
    },
    soccer: {
      name: "Soccer",
      parent: "sports"
    },
    swimming: {
      name: "Swimming",
      parent: "sports"
    },
    tennis: {
      name: "Tennis",
      parent: "sports"
    },
    volleyball: {
      name: "Volleyball",
      parent: "sports"
    },
    wilderness: {
      name: "Wilderness",
      parent: "sports"
    },
    wrestling: {
      name: "Wrestling",
      parent: "sports"
    },
    technology: {
      name: "Technology"
    },
    gadgets: {
      name: "Gadgets",
      parent: "technology",
      "removed?": true
    },
    podcasting: {
      name: "Podcasting",
      parent: "technology",
      "removed?": true
    },
    software_how_to: {
      name: "Software How-To",
      parent: "technology",
      "removed?": true
    },
    true_crime: {
      name: "True Crime"
    },
    tv_and_film: {
      name: "TV \u0026 Film"
    },
    after_shows: {
      name: "After Shows",
      parent: "tv_and_film"
    },
    film_history: {
      name: "Film History",
      parent: "tv_and_film"
    },
    film_interviews: {
      name: "Film Interviews",
      parent: "tv_and_film"
    },
    film_reviews: {
      name: "Film Reviews",
      parent: "tv_and_film"
    },
    tv_reviews: {
      name: "TV Reviews",
      parent: "tv_and_film"
    }
  };
  
  export function buildiTunesCategory(category_slug) {
    let result = {};
  
    if (iTunesCategories.hasOwnProperty(category_slug)) {
      const category = iTunesCategories[category_slug];
      result["itunes:category"] = {
        _attr: { text: category.name }
      };
  
      if (category.parent && iTunesCategories.hasOwnProperty(category.parent)) {
        const parent_category = iTunesCategories[category.parent];
  
        result = {
          "itunes:category": [
            {
              _attr: {
                text: parent_category.name
              }
            },
            result
          ]
        };
      }
    }
  
    return result;
  }
  