2021-02-06 15:29:26 -05:00
|
|
|
import pathlib
|
|
|
|
|
|
|
|
here = pathlib.Path(__file__).parent
|
|
|
|
file_readme = here / './../readme.md'
|
2021-02-06 14:48:34 -05:00
|
|
|
with open(file_readme, 'r') as read_readme:
|
|
|
|
content_readme = read_readme.readlines()
|
|
|
|
|
2021-02-11 18:24:13 -05:00
|
|
|
|
2021-02-06 14:48:34 -05:00
|
|
|
def featured_playlists():
|
|
|
|
featured_playlists_errors_nums = []
|
|
|
|
featured_playlists_line = 'Featured playlists:'
|
|
|
|
featured_playlists_dlen = 124
|
2021-02-11 18:24:13 -05:00
|
|
|
|
2021-02-06 14:48:34 -05:00
|
|
|
for j, i in enumerate(content_readme):
|
|
|
|
if featured_playlists_line in i:
|
|
|
|
if len(i) < featured_playlists_dlen and i[-2] != '\\':
|
|
|
|
featured_playlists_errors_nums.append(j)
|
|
|
|
return featured_playlists_errors_nums
|
|
|
|
|
2021-02-11 18:24:13 -05:00
|
|
|
|
2021-02-06 14:48:34 -05:00
|
|
|
featured_playlists_errors_nums = featured_playlists()
|