Skip to content

Kavita is a fast, feature rich, cross platform reading server. Built with the goal of being a full solution for all your reading needs. Setup your own server and share your reading collection with your friends and family.

508 B
Raw Blame
import { Pipe, PipeTransform } from '@angular/core';
import {ScrobbleProvider} from "../_services/scrobbling.service";

@Pipe({
  name: 'providerName',
  standalone: true
})
export class ProviderNamePipe implements PipeTransform {

  transform(value: ScrobbleProvider): string {
    switch (value) {
      case ScrobbleProvider.AniList:
        return 'AniList';
      case ScrobbleProvider.Mal:
        return 'MAL';
      case ScrobbleProvider.Kavita:
        return 'Kavita';
    }

    return '';
  }

}