YCast/ycast/generic.py
milaq 16387a3f50 Rework directory handling
This greatly improves loading times and takes some load off the APIs.

 * Add generic directory class to also hold item count
 * Radiobrowser: Get station count directly from API
 * Optionally show broken stations and their count
 * Remove minimum station bitrate to not filter away some listings
 * Improve code wording
 * Log API requests
2019-08-18 13:50:38 +02:00

5 lines
121 B
Python

class Directory:
def __init__(self, name, item_count):
self.name = name
self.item_count = item_count