Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
matijakolaric committed Nov 18, 2019
1 parent 63ea1a3 commit aa1062b
Showing 1 changed file with 8 additions and 30 deletions.
38 changes: 8 additions & 30 deletions README.md
Expand Up @@ -26,11 +26,11 @@ countries:
from music_metadata.territories import *

world = Territory.get('2136')
croatia = Territory.get('HR')
usa = Territory.get('US')

l = TerritoryList()
l.include(world)
l.exclude(croatia)
l.exclude(usa)

for t in sorted(l, key=lambda x: x.name):
print(f'{t.tis_n:0>4}', t.name)
Expand All @@ -40,34 +40,12 @@ Result:

```
2100 AFRICA
2101 AMERICA
0020 ANDORRA
2106 ASIA
0040 AUSTRIA
0056 BELGIUM
0070 BOSNIA AND HERZEGOVINA
2111 BRITISH ISLES
2119 EASTERN EUROPE
0246 FINLAND
0250 FRANCE
0276 GERMANY
0300 GREECE
0336 HOLY SEE (VATICAN CITY STATE)
0352 ICELAND
0380 ITALY
0438 LIECHTENSTEIN
0442 LUXEMBOURG
0807 MACEDONIA, THE FORMER YUGOSLAV REPUBLIC OF
0470 MALTA
0492 MONACO
0499 MONTENEGRO
0528 NETHERLANDS
0124 CANADA
2113 CENTRAL AMERICA
2120 EUROPE
0484 MEXICO
2130 OCEANIA
0620 PORTUGAL
0674 SAN MARINO
2131 SCANDINAVIA
0688 SERBIA
0705 SLOVENIA
0724 SPAIN
0756 SWITZERLAND
2132 SOUTH AMERICA
2134 WEST INDIES
```

0 comments on commit aa1062b

Please sign in to comment.