Play all seasons

I am making a small script that will play all episodes of a TV Show starting from a random episode. Currently I have a m3u that is played via xbmc.Player().play(m3u video list)

Rather than update the m3u files when I add new episodes I am looking for a way to use the “All Seasons” section in each TV Show. Anyone know how I can make a video list from All Seasons or otherwise do what I am trying to do?

Thanks,

R